diff options
author | Rahul Jain <rahul.jain@samsung.com> | 2020-07-21 16:48:45 +0530 |
---|---|---|
committer | Rahul Jain <rahul.jain@samsung.com> | 2020-07-23 14:50:28 +0530 |
commit | 8f4dbb1aa7ce0b39a12b9cc908a8660c5d61f0cc (patch) | |
tree | e25f9acc773fef9e7838041984249361345fca1d /plugins/wifi.c | |
parent | f8475e05aab8b64c6779fd4237dceb074b4208d6 (diff) | |
download | connman-62b1d1e7a4393d4ed6a4a2d777f48e6a987a5c51.tar.gz connman-62b1d1e7a4393d4ed6a4a2d777f48e6a987a5c51.tar.bz2 connman-62b1d1e7a4393d4ed6a4a2d777f48e6a987a5c51.zip |
Svace issues: Null check and memory leakssubmit/tizen/20200804.104340submit/tizen/20200730.084504accepted/tizen/unified/20200805.122502
Change-Id: I937af7e6dbe3a919c1d0b0d7dee4b481c2ef0982
Diffstat (limited to 'plugins/wifi.c')
-rwxr-xr-x | plugins/wifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 7f26417b..2f70ee70 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2986,7 +2986,7 @@ static int mesh_scan(struct connman_device *device) wifi = connman_device_get_data(device); - if (!wifi->mesh_interface) + if (!wifi || !wifi->mesh_interface) return -ENOTSUP; mesh_info = wifi->mesh_info; |