mesh: Fix for handling unprovisioned device

If there is no ServiceData there is no valid provisioning data for
PB-GATT
This commit is contained in:
Łukasz Rymanowski 2017-08-31 12:12:55 +02:00 committed by Johan Hedberg
parent a5b844cb8f
commit 22d943a798

View File

@ -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;