]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear all neighbor entry items explicitly
authorJouni Malinen <j@w1.fi>
Sun, 3 Mar 2024 18:39:29 +0000 (20:39 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Mar 2024 19:33:46 +0000 (21:33 +0200)
Do not leave some of the variables to their previously used values when
a neighbor entry is cleared.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/neighbor_db.c

index 2eefef0225a886d64acaac0bd346644b3559f0cf..83ff11268d48c748ee7dea572ca8d37377293ac0 100644 (file)
@@ -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;
 }