From: Jouni Malinen Date: Sat, 21 Nov 2009 10:18:24 +0000 (+0200) Subject: WPS ER: Stop AP unlink loop on match X-Git-Tag: hostap_0_7_0~20 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=commitdiff_plain;h=7a082a83f0a8af49fab4a72f8d85bcbf4947d326 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. --- diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index 898f936..301e416 100644 --- a/src/wps/wps_er.c +++ b/src/wps/wps_er.c @@ -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;