[PATCH 3/3] session: Undo empty D-Bus message check

Daniel Wagner wagi at monom.org
Tue Jan 10 05:34:08 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

This check is wrong.
---
 src/session.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/session.c b/src/session.c
index 3e43b4f..83cdaf0 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1466,11 +1466,6 @@ int __connman_session_create(DBusMessage *msg)
 	}
 
 	dbus_message_iter_init(msg, &iter);
-	if (dbus_message_iter_has_next(&iter) == FALSE) {
-		err = -EINVAL;
-		goto err;
-	}
-
 	dbus_message_iter_recurse(&iter, &array);
 
 	while (dbus_message_iter_get_arg_type(&array) == DBUS_TYPE_DICT_ENTRY) {
-- 
1.7.8.2.325.g247f9



More information about the connman mailing list