diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2021-02-24 08:31:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review> | 2021-02-24 08:31:21 +0000 |
commit | a424f79696a666ac27812d23af170552e760309d (patch) | |
tree | 5e26bdf23178c87e9105f7f9d0d0a25e3e68ee61 /gsupplicant/supplicant.c | |
parent | d180a9d2152fdd28ea68f0fbe0ef52e9c7ceac5a (diff) | |
parent | cf94fb3ffa303075783f8b04285ca4bd0fb451c4 (diff) | |
download | connman-a424f79696a666ac27812d23af170552e760309d.tar.gz connman-a424f79696a666ac27812d23af170552e760309d.tar.bz2 connman-a424f79696a666ac27812d23af170552e760309d.zip |
Merge "Error checking in passphrase decryption method." into tizensubmit/tizen/20210224.083420accepted/tizen/unified/20210225.130544
Diffstat (limited to 'gsupplicant/supplicant.c')
-rwxr-xr-x | gsupplicant/supplicant.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 02e6a629..cfdb183a 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -7485,8 +7485,16 @@ static int send_decryption_request(const char *passphrase, if (!msg) return -EINVAL; +#if defined TIZEN_EXT + if (!dbus_message_append_args(msg, DBUS_TYPE_STRING, &passphrase, + DBUS_TYPE_INVALID)) { + SUPPLICANT_DBG("Could not fulfill decryption request"); + return -ENOMEM; + } +#else dbus_message_append_args(msg, DBUS_TYPE_STRING, &passphrase, DBUS_TYPE_INVALID); +#endif if (!dbus_connection_send_with_reply(connection, msg, &call, DBUS_TIMEOUT_USE_DEFAULT)) { |