diff options
author | Anjali Nijhara <a.nijhara@samsung.com> | 2023-08-22 11:28:44 +0530 |
---|---|---|
committer | Anjali Nijhara <a.nijhara@samsung.com> | 2023-08-22 11:28:44 +0530 |
commit | f1d92a10ada80d2bc3aed2c9f396c8a169535ee0 (patch) | |
tree | 56cfe80624ce725e236b31d790dbf8f45bfff5ee | |
parent | 37b6ce46671cc0a19f6fd7e8067ce0a01cb2230e (diff) | |
download | connman-f1d92a10ada80d2bc3aed2c9f396c8a169535ee0.tar.gz connman-f1d92a10ada80d2bc3aed2c9f396c8a169535ee0.tar.bz2 connman-f1d92a10ada80d2bc3aed2c9f396c8a169535ee0.zip |
fix dereferencing Issue
Change-Id: I93cd72ce9e6b08d33397275feb4b8bf4ecb585c1
-rwxr-xr-x | plugins/wifi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 9362a71e..befc7e2a 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -4152,6 +4152,9 @@ static void disconnect_callback(int result, GSupplicantInterface *interface, for (list = iface_list; list; list = list->next) { wifi = list->data; + if (!wifi) + continue; + if (wifi->network == NULL && wifi->disconnecting == true) wifi->disconnecting = false; |