projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc96c12
)
provider: Handle empty D-Bus message
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 9 Jan 2012 16:50:36 +0000
(17:50 +0100)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 9 Jan 2012 16:53:37 +0000
(17:53 +0100)
src/provider.c
patch
|
blob
|
history
diff --git
a/src/provider.c
b/src/provider.c
index
1ff6bc4
..
5bea4c5
100644
(file)
--- a/
src/provider.c
+++ b/
src/provider.c
@@
-555,6
+555,9
@@
int __connman_provider_create_and_connect(DBusMessage *msg)
int err;
dbus_message_iter_init(msg, &iter);
+ if (dbus_message_iter_has_next(&iter) == FALSE)
+ return -EINVAL;
+
dbus_message_iter_recurse(&iter, &array);
while (dbus_message_iter_get_arg_type(&array) == DBUS_TYPE_DICT_ENTRY) {