mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +01:00
network: add check for the existing settings
In the case of the open networks with hidden SSIDs the settings object is already created. Valgrind: ==4084== at 0x4C2EB6B: malloc (vg_replace_malloc.c:299) ==4084== by 0x43B44D: l_malloc (util.c:62) ==4084== by 0x43E3FA: l_settings_new (settings.c:83) ==4084== by 0x41D101: network_connect_new_hidden_network (network.c:1053) ==4084== by 0x4105B7: station_hidden_network_scan_results (station.c:1733) ==4084== by 0x419817: scan_finished (scan.c:1165) ==4084== by 0x419CAA: get_scan_done (scan.c:1191) ==4084== by 0x443562: destroy_request (genl.c:139) ==4084== by 0x4437F7: process_unicast (genl.c:424) ==4084== by 0x4437F7: received_data (genl.c:534) ==4084== by 0x440958: io_callback (io.c:123) ==4084== by 0x43FDED: l_main_iterate (main.c:376) ==4084== by 0x43FEAB: l_main_run (main.c:423)
This commit is contained in:
parent
88b2aefeed
commit
b5aefede95
@ -129,11 +129,12 @@ void network_connected(struct network *network)
|
||||
/*
|
||||
* This is an open network seen for the first time:
|
||||
*
|
||||
* Write an empty settings file to keep track of the
|
||||
* Write a settings file to keep track of the
|
||||
* last connected time. This will also make iwd autoconnect
|
||||
* to this network in the future.
|
||||
*/
|
||||
network->settings = l_settings_new();
|
||||
if (!network->settings)
|
||||
network->settings = l_settings_new();
|
||||
|
||||
storage_network_sync(network_get_security(network),
|
||||
network->info->ssid,
|
||||
|
Loading…
Reference in New Issue
Block a user