diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index e4d7bfc9b..c09c17a44 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -261,6 +261,7 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd) { os_free(hapd->probereq_cb); hapd->probereq_cb = NULL; + hapd->num_probereq_cb = 0; #ifdef CONFIG_P2P wpabuf_free(hapd->p2p_beacon_ie);