agent: Undo empty D-Bus message check
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 10 Jan 2012 13:27:54 +0000 (14:27 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 10 Jan 2012 14:05:10 +0000 (15:05 +0100)
This check is wrong.

src/agent.c

index d8d0fe6..9c789cf 100644 (file)
@@ -111,9 +111,6 @@ static void request_input_passphrase_reply(DBusPendingCall *call, void *user_dat
        values_received = TRUE;
 
        dbus_message_iter_init(reply, &iter);
-       if (dbus_message_iter_has_next(&iter) == FALSE)
-               goto done;
-
        dbus_message_iter_recurse(&iter, &dict);
        while (dbus_message_iter_get_arg_type(&dict) == DBUS_TYPE_DICT_ENTRY) {
                DBusMessageIter entry, value;
@@ -340,9 +337,6 @@ static void request_input_login_reply(DBusPendingCall *call, void *user_data)
                goto done;
 
        dbus_message_iter_init(reply, &iter);
-       if (dbus_message_iter_has_next(&iter) == FALSE)
-               goto done;
-
        dbus_message_iter_recurse(&iter, &dict);
        while (dbus_message_iter_get_arg_type(&dict) == DBUS_TYPE_DICT_ENTRY) {
                DBusMessageIter entry, value;