Merge "Error checking in passphrase decryption method." into tizen accepted/tizen/unified/20210225.130544 submit/tizen/20210224.083420
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 24 Feb 2021 08:31:21 +0000 (08:31 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 24 Feb 2021 08:31:21 +0000 (08:31 +0000)
gsupplicant/supplicant.c
packaging/connman.spec

index 02e6a62..cfdb183 100755 (executable)
@@ -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)) {
index 80309a8..501c10e 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:           connman
 Version:        1.38
-Release:        3
+Release:        4
 License:        GPL-2.0+
 Summary:        Connection Manager
 Url:            http://connman.net