3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

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

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)