summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2023-09-18 16:27:06 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2023-09-18 16:27:06 +0900
commit62c1831830ace360cd7eb01e6fcc0503970de273 (patch)
treec0aea22b2fae398ba7b1def8101a945cfc9ca4da
parenta6922654fe2e2c5866ab9f48e3d37d8236897b28 (diff)
downloadconnman-62c1831830ace360cd7eb01e6fcc0503970de273.tar.gz
connman-62c1831830ace360cd7eb01e6fcc0503970de273.tar.bz2
connman-62c1831830ace360cd7eb01e6fcc0503970de273.zip
Fix dereference after null checkaccepted/tizen/unified/20230919.091816
Change-Id: I7d5b8fbfffeb7dcc00ac0a40a0979201ce3139eb Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xplugins/wifi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 36e22620..34abdec1 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2719,7 +2719,10 @@ static void interface_create_callback(int result,
wifi->interface = interface;
g_supplicant_interface_set_data(interface, wifi);
#ifdef TIZEN_EXT
- if (interface && wifi->device &&
+ if (!interface)
+ return;
+
+ if (wifi->device &&
!connman_device_get_wifi_5ghz_supported(wifi->device) &&
!connman_device_get_wifi_6ghz_supported(wifi->device)) {
bool is_5_0_ghz_supported = g_supplicant_interface_get_is_5_0_ghz_supported(interface);