summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-20 16:34:05 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-27 10:28:29 +0200
commit2bde019f7aa798930a840207e63a3f9b19a71cb1 (patch)
tree723cb7ba71051d24e62ab8321b2a907b9b87336d /unit
parent7f2820ca9fb459d7e6899e9766f7e6a1cf8b11d0 (diff)
downloadconnman-2bde019f7aa798930a840207e63a3f9b19a71cb1.tar.gz
connman-2bde019f7aa798930a840207e63a3f9b19a71cb1.tar.bz2
connman-2bde019f7aa798930a840207e63a3f9b19a71cb1.zip
unit: Do not append empty AllowedBearers dictionary
An empty AllowedBearers means do not match anything.
Diffstat (limited to 'unit')
-rw-r--r--unit/session-api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unit/session-api.c b/unit/session-api.c
index e808bd21..e82199d7 100644
--- a/unit/session-api.c
+++ b/unit/session-api.c
@@ -254,6 +254,9 @@ static void append_allowed_bearers(DBusMessageIter *iter, void *user_data)
void session_append_settings(DBusMessageIter *dict,
struct test_session_info *info)
{
+ if (info->allowed_bearers == NULL)
+ return;
+
connman_dbus_dict_append_array(dict, "AllowedBearers",
DBUS_TYPE_STRING,
append_allowed_bearers,