summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
Diffstat (limited to 'gsupplicant')
-rwxr-xr-xgsupplicant/supplicant.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 5233fab3..8225637f 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -8247,7 +8247,13 @@ static void network_remove_result(const char *error,
error) == 0)
result = -ECONNABORTED;
}
-
+#if defined TIZEN_EXT
+ if (!system_available) {
+ g_free(data->path);
+ dbus_free(data);
+ return;
+ }
+#endif
g_free(data->interface->network_path);
data->interface->network_path = NULL;
@@ -8439,6 +8445,9 @@ void g_supplicant_interface_remove_network(GSupplicantInterface *interface,
SUPPLICANT_DBG("");
+ if (!system_available)
+ return;
+
if (!interface)
return;