From: Jouni Malinen Date: Wed, 4 Mar 2020 21:26:02 +0000 (+0200) Subject: WPS: Remove expired PINs on Selected Registrar timeout X-Git-Tag: hostap_2_10~1694 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11dab0f37f19659cb8587b032ded553e42d98142;p=thirdparty%2Fhostap.git WPS: Remove expired PINs on Selected Registrar timeout This clears the AuthorizedMACs advertisement immediately when the Selected Registrar timeout is hit and no more active PINs are present. Previously, the AuthorizedMACs advertisement could remain in place indefinitely since expired PINs were removed only when actually trying to find a PIN for a new WPS exchange. Signed-off-by: Jouni Malinen --- diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c index d71a54315..9ee89ae34 100644 --- a/src/wps/wps_registrar.c +++ b/src/wps/wps_registrar.c @@ -3478,6 +3478,7 @@ static void wps_registrar_set_selected_timeout(void *eloop_ctx, "unselect internal Registrar"); reg->selected_registrar = 0; reg->pbc = 0; + wps_registrar_expire_pins(reg); wps_registrar_selected_registrar_changed(reg, 0); }