]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Remove expired PINs on Selected Registrar timeout
authorJouni Malinen <jouni@codeaurora.org>
Wed, 4 Mar 2020 21:26:02 +0000 (23:26 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 4 Mar 2020 21:26:02 +0000 (23:26 +0200)
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 <jouni@codeaurora.org>
src/wps/wps_registrar.c

index d71a5431514de8b5a80506df569c4a939f8b7855..9ee89ae340a328c5ae09d4f5e7e331963ebe9942 100644 (file)
@@ -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);
 }