Diff between 2e4327816587ee7d2e3238268cacbdf40faa4b0e and 732eaa7ccf85cb1038343d76a11c3e2b34029c44
Changed Files
| File | Additions | Deletions | Status |
| src/advertising.c | +6 | -0 | modified |
Full Patch
diff --git a/src/advertising.c b/src/advertising.c
index 42ac627..6d8d06e 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1047,6 +1047,12 @@ static bool parse_secondary(DBusMessageIter *iter,
const char *str;
struct adv_secondary *sec;
+ if (!iter) {
+ /* Reset secondary channels */
+ client->flags &= ~MGMT_ADV_FLAG_SEC_MASK;
+ return true;
+ }
+
if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_STRING)
return false;