WPS ER: Stop AP unlink loop on match

There is no need to continue through the list after this, since the
same AP entry can only be listed once.
This commit is contained in:
Jouni Malinen 2009-11-21 12:18:24 +02:00
parent 6a1e492a81
commit 7a082a83f0

View file

@ -299,6 +299,7 @@ static void wps_er_ap_unlink(struct wps_er *er, struct wps_er_ap *ap)
prev->next = ap->next;
else
er->ap = ap->next;
return;
}
prev = tmp;
tmp = tmp->next;