Skip to content

Commit f90b2f0

Browse files
committed
bt: cert: cleanup BT connection on failed GATT read
Similar case as for info.c error path. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
1 parent 430595f commit f90b2f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/bt/cert.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ static uint8_t device_cert_read_cb(struct bt_conn *conn,
7474
if (err)
7575
{
7676
LOG_ERR("Failed to read BLE GATT %s (err %d)", "device cert", err);
77+
device_cert_cleanup(conn);
78+
pouch_gateway_bt_finished(conn);
7779
return BT_GATT_ITER_STOP;
7880
}
7981

0 commit comments

Comments
 (0)