Parcourir la source

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.
Jouni Malinen il y a 15 ans
Parent
commit
7a082a83f0
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/wps/wps_er.c

+ 1 - 0
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;