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:
parent
bf5817d273
commit
5317008ad3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue