diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ethernet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 57d65424..2a91e2f3 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -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; } |