Thread (7 messages) 7 messages, 3 authors, 2017-09-04
STALE3250d

[PATCH BlueZ 1/3] mesh: Fix for handling unprovisioned device

From: Łukasz Rymanowski <hidden>
Date: 2017-08-31 10:12:55
Subsystem: the rest · Maintainer: Linus Torvalds

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 b06f4352a..2289d7d10 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.11.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help