[Fix][plugin/ethernet] SVACE warning DEREF_AFTER_NULL 67/245067/2
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 30 Sep 2020 10:10:18 +0000 (15:40 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 7 Oct 2020 09:04:50 +0000 (14:34 +0530)
Change-Id: Ie3a9044de3be7ce46d05052920f9d5b5d99cd15f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/connman.spec
plugins/ethernet.c

index a8904e2..0957d3d 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:           connman
 Version:        1.37
-Release:        44
+Release:        45
 License:        GPL-2.0+
 Summary:        Connection Manager
 Url:            http://connman.net
index 57d6542..2a91e2f 100644 (file)
@@ -437,7 +437,10 @@ static void eth_dev_remove(struct connman_device *device)
        connman_device_set_data(device, NULL);
 
 #if defined TIZEN_EXT && defined TIZEN_EXT_EAP_ON_ETHERNET
-       if (ethernet && ethernet->interface) {
+       if (!ethernet)
+              return;
+
+       if (ethernet->interface) {
                g_supplicant_interface_remove(ethernet->interface, NULL, NULL);
                ethernet->interface = NULL;
        }