From 22d943a798d017a5be0882b9edfe12884b733191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Thu, 31 Aug 2017 12:12:55 +0200 Subject: [PATCH] mesh: Fix for handling unprovisioned device If there is no ServiceData there is no valid provisioning data for PB-GATT --- mesh/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/main.c b/mesh/main.c index 96ac78544..604e57747 100644 --- a/mesh/main.c +++ b/mesh/main.c @@ -503,7 +503,7 @@ static bool parse_service_data(GDBusProxy *proxy, const char *target_uuid, } if (!g_dbus_proxy_get_property(proxy, "ServiceData", &iter)) - return true; + return false; if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY) return false; -- 2.47.3