From 899894458448228aa3b7b59a3b27aa628df71397 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Sep 2012 10:52:17 +0300 Subject: [PATCH] core: Initialize profile security level to a sane default --- src/profile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/profile.c b/src/profile.c index 403e1119a..839607f07 100644 --- a/src/profile.c +++ b/src/profile.c @@ -278,6 +278,8 @@ static struct ext_profile *create_ext(const char *owner, const char *path, ext->path = g_strdup(path); ext->uuid = g_strdup(uuid); + ext->sec_level = BT_IO_SEC_LOW; + while (dbus_message_iter_get_arg_type(opts) == DBUS_TYPE_DICT_ENTRY) { DBusMessageIter value, entry; const char *key; -- 2.47.3