From 11dab0f37f19659cb8587b032ded553e42d98142 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 4 Mar 2020 23:26:02 +0200 Subject: [PATCH] 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 --- src/wps/wps_registrar.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.47.2