From: Jouni Malinen Date: Sun, 3 Mar 2024 18:39:29 +0000 (+0200) Subject: Clear all neighbor entry items explicitly X-Git-Tag: hostap_2_11~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f0af07e6258b028dde3ac5378888a80f7659b6;p=thirdparty%2Fhostap.git Clear all neighbor entry items explicitly Do not leave some of the variables to their previously used values when a neighbor entry is cleared. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/neighbor_db.c b/src/ap/neighbor_db.c index 2eefef022..83ff11268 100644 --- a/src/ap/neighbor_db.c +++ b/src/ap/neighbor_db.c @@ -99,7 +99,10 @@ static void hostapd_neighbor_clear_entry(struct hostapd_neighbor_entry *nr) nr->civic = NULL; os_memset(nr->bssid, 0, sizeof(nr->bssid)); os_memset(&nr->ssid, 0, sizeof(nr->ssid)); + os_memset(&nr->lci_date, 0, sizeof(nr->lci_date)); nr->stationary = 0; + nr->short_ssid = 0; + nr->bss_parameters = 0; }