Browse 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 15 years ago
parent
commit
7a082a83f0
1 changed files with 1 additions and 0 deletions
  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;