Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."

Today's Topics:

   1. [PATCH] [Fix] Dereference after free in sta_remove_callback()
      ([email protected])


----------------------------------------------------------------------

Date: Sat, 12 Oct 2019 07:12:52 -0000
From: [email protected]
Subject: [PATCH] [Fix] Dereference after free in sta_remove_callback()
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Signed-off-by: Nishant Chaprana <[email protected]>
---
 plugins/wifi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 910b739..e675e6a 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -3356,15 +3356,15 @@ static void sta_remove_callback(int result,
                info->wifi->tethering = false;
                connman_technology_tethering_notify(info->technology, false);
 
-               g_free(info->ifname);
-               g_free(info->ssid);
-               g_free(info);
-
                if (info->wifi->ap_supported == WIFI_AP_SUPPORTED) {
                        g_free(info->wifi->tethering_param->ssid);
                        g_free(info->wifi->tethering_param);
                        info->wifi->tethering_param = NULL;
                }
+
+               g_free(info->ifname);
+               g_free(info->ssid);
+               g_free(info);
                return;
        }
 
-- 
2.7.4

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


------------------------------

End of connman Digest, Vol 48, Issue 21
***************************************

Reply via email to