summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2018-01-12 18:38:45 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2018-01-12 18:40:57 +0900
commite2d7fb2f0a93e6af36870f0d79e4373108aa5375 (patch)
tree5e22b17d9a4bb9ecaa3b243ad9a4bb3968ed9854 /gsupplicant
parent1a5031d10d06c727f8cbc866e928b5d69bce50cc (diff)
downloadconnman-e2d7fb2f0a93e6af36870f0d79e4373108aa5375.tar.gz
connman-e2d7fb2f0a93e6af36870f0d79e4373108aa5375.tar.bz2
connman-e2d7fb2f0a93e6af36870f0d79e4373108aa5375.zip
Change-Id: Id8a29b6156449bf3dd23f79a7224ab39e9599b82 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
Diffstat (limited to 'gsupplicant')
-rwxr-xr-xgsupplicant/supplicant.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 9b7e003f..9a58e29f 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -5232,11 +5232,13 @@ static void decryption_request_reply(DBusPendingCall *call,
if (dbus_set_error_from_message(&error, reply)) {
SUPPLICANT_DBG("decryption_request_reply() %s %s", error.name, error.message);
dbus_error_free(&error);
+ ret = -EINVAL;
goto done;
}
if (dbus_message_iter_init(reply, &args) == FALSE) {
SUPPLICANT_DBG("dbus_message_iter_init() failed");
+ ret = -EINVAL;
goto done;
}
@@ -5251,6 +5253,7 @@ static void decryption_request_reply(DBusPendingCall *call,
interface_add_network_result, data,
data->interface);
+done:
if (ret < 0) {
SUPPLICANT_DBG("AddNetwork failed %d", ret);
callback_assoc_failed(decrypt_request_data.data->user_data);
@@ -5259,7 +5262,6 @@ static void decryption_request_reply(DBusPendingCall *call,
dbus_free(data);
}
-done:
dbus_message_unref(reply);
dbus_pending_call_unref(call);