diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index b427ac1ba8d..f6c8d90a84b 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -753,9 +753,9 @@ static uint8_t smp_master_ident(struct bt_conn *conn, struct bt_buf *buf) smp->remote_dist &= ~BT_SMP_DIST_ENC_KEY; if (!smp->remote_dist) { bt_smp_distribute_keys(conn); - } - return 0; + return 0; + } } if (smp->remote_dist & BT_SMP_DIST_ID_KEY) {