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;