From 7a082a83f0a8af49fab4a72f8d85bcbf4947d326 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 21 Nov 2009 12:18:24 +0200 Subject: [PATCH] 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. --- src/wps/wps_er.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index 898f9360b..301e4167e 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;