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 <j@w1.fi>
This commit is contained in:
parent
6f285fbafc
commit
96f0af07e6
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue