Fix dereference after null check 10/299010/1 accepted/tizen/unified/20230919.091816
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 18 Sep 2023 07:27:06 +0000 (16:27 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 18 Sep 2023 07:27:06 +0000 (16:27 +0900)
Change-Id: I7d5b8fbfffeb7dcc00ac0a40a0979201ce3139eb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
plugins/wifi.c

index 36e2262..34abdec 100755 (executable)
@@ -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);