diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2024-09-11 16:32:15 +0900 |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2024-09-11 16:32:15 +0900 |
commit | 47dd3fa0ce3b5b0ea3927c4a14e9941b2543ab5e (patch) | |
tree | e68e4f15dee440fc0b29ae3162af15f07680b197 /gsupplicant | |
parent | f0df2ef000a365227bc82abbe051efba9886109a (diff) | |
download | connman-47dd3fa0ce3b5b0ea3927c4a14e9941b2543ab5e.tar.gz connman-47dd3fa0ce3b5b0ea3927c4a14e9941b2543ab5e.tar.bz2 connman-47dd3fa0ce3b5b0ea3927c4a14e9941b2543ab5e.zip |
Check wpa_supplicant service when requesting network remove
Change-Id: I70caeb5153f3bb0c8093ca9ef9b23adde35d50fb
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'gsupplicant')
-rwxr-xr-x | gsupplicant/supplicant.c | 11 |
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; |