summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2018-07-27 12:45:51 (GMT)
committerJaehyun Kim <jeik01.kim@samsung.com>2018-07-27 12:46:35 (GMT)
commit14f7f99695fec91396f7f77ef6abfa70f881d800 (patch)
tree4e13b55e57615f6a0d5f38ddd3009f2b00f3d236
parentdd9f82dc313b24af1b539c4ec9501453d9c5b415 (diff)
downloadconnman-submit/tizen/20180731.042150.zip
connman-submit/tizen/20180731.042150.tar.gz
connman-submit/tizen/20180731.042150.tar.bz2
Change-Id: I10e219cdc4ea66f0e5e3208d1c9e505a63758607 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rw-r--r--gsupplicant/supplicant.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index c5c83f3..bbaad04 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4881,6 +4881,7 @@ static void interface_select_network_result(const char *error,
#if defined TIZEN_EXT
g_free(data->ssid->ssid);
+ g_free(data->ssid->passphrase);
#endif
g_free(data->ssid);
dbus_free(data);
@@ -4969,6 +4970,7 @@ error:
g_free(data->path);
#if defined TIZEN_EXT
g_free(data->ssid->ssid);
+ g_free(data->ssid->passphrase);
#endif
g_free(data->ssid);
g_free(data);
@@ -5685,12 +5687,8 @@ static void decryption_request_reply(DBusPendingCall *call,
DBusMessageIter args;
char *out_data;
int ret;
- static gchar* origin_value = NULL;
struct interface_connect_data *data = user_data;
- g_free(origin_value);
- origin_value = NULL;
-
SUPPLICANT_DBG("");
reply = dbus_pending_call_steal_reply(call);
@@ -5710,9 +5708,7 @@ static void decryption_request_reply(DBusPendingCall *call,
}
dbus_message_iter_get_basic(&args, &out_data);
-
- origin_value = g_strdup((const gchar *)out_data);
- data->ssid->passphrase = origin_value;
+ data->ssid->passphrase = g_strdup((const gchar *)out_data);
ret = supplicant_dbus_method_call(data->interface->path,
SUPPLICANT_INTERFACE ".Interface", "AddNetwork",
@@ -5725,9 +5721,8 @@ done:
SUPPLICANT_DBG("AddNetwork failed %d", ret);
callback_assoc_failed(decrypt_request_data.data->user_data);
g_free(data->path);
-#if defined TIZEN_EXT
g_free(data->ssid->ssid);
-#endif
+ g_free(data->ssid->passphrase);
g_free(data->ssid);
dbus_free(data);
}