bluetooth: host: fix missing bt_conn_unref

Fix missing bt_conn_unref when using the ccc match callback.

Fixes: #20299

Signed-off-by: François Delawarde <fnde@oticon.com>
This commit is contained in:
François Delawarde 2019-11-01 07:56:59 +01:00 committed by Johan Hedberg
commit 5317008ad3

View file

@ -1705,6 +1705,7 @@ static u8_t notify_cb(const struct bt_gatt_attr *attr, void *user_data)
/* Confirm match if cfg is managed by application */
if (ccc->cfg_match && !ccc->cfg_match(conn, attr)) {
bt_conn_unref(conn);
continue;
}