network: destroy secrets on known network removal

If a known network is removed explicitly IWD should forget any
secrets cached on the network object.
This commit is contained in:
James Prestwood 2021-08-17 09:44:58 -07:00 committed by Denis Kenzior
parent fd43a3938f
commit 99a94bc441
1 changed files with 3 additions and 0 deletions

View File

@ -1849,6 +1849,9 @@ static void emit_known_network_removed(struct station *station, void *user_data)
if (network && was_hidden)
station_hide_network(station, network);
l_queue_destroy(network->secrets, eap_secret_info_free);
network->secrets = NULL;
}
static void network_update_hotspot(struct network *network, void *user_data)