From: Jaehyun Kim Date: Mon, 5 Sep 2022 12:39:51 +0000 (+0900) Subject: Fix crash when disabling connected wifi X-Git-Tag: accepted/tizen/unified/20220908.172942^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fconnman.git;a=commitdiff_plain;h=4202b38f6d169cfd49eeb906593dcbd9b159fd67 Fix crash when disabling connected wifi This issue is caused by trying to access invalid connman_network when wifi is disabled. In this case, there is no need to reset the value. Change-Id: I3137ba91a11086ae5e8f8f976dc52f84d62d4975 Signed-off-by: Jaehyun Kim --- diff --git a/plugins/wifi.c b/plugins/wifi.c index 4280c47..90d4b8f 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -4004,9 +4004,6 @@ static void disconnect_callback(int result, GSupplicantInterface *interface, goto found; } - if (connman_network_get_bool(wifi->network, "WiFi.Roaming")) - connman_network_set_bool(wifi->network, "WiFi.Roaming", false); - if (network == wifi->pending_network) wifi->pending_network = NULL;