diff --git a/subsys/bluetooth/host/smp.c b/subsys/bluetooth/host/smp.c index 93f26654f809d4..617866b2310f73 100644 --- a/subsys/bluetooth/host/smp.c +++ b/subsys/bluetooth/host/smp.c @@ -3118,7 +3118,7 @@ static u8_t smp_pairing_random(struct bt_smp *smp, struct net_buf *buf) return BT_SMP_ERR_UNSPECIFIED; } - if (bt_auth->oob_data_request) { + if (bt_auth && bt_auth->oob_data_request) { struct bt_conn_oob_info info = { .type = BT_CONN_OOB_LE_SC, .lesc.oob_config = BT_CONN_OOB_NO_DATA, @@ -3528,7 +3528,7 @@ static u8_t smp_public_key(struct bt_smp *smp, struct net_buf *buf) return BT_SMP_ERR_UNSPECIFIED; } - if (bt_auth->oob_data_request) { + if (bt_auth && bt_auth->oob_data_request) { struct bt_conn_oob_info info = { .type = BT_CONN_OOB_LE_SC, .lesc.oob_config = BT_CONN_OOB_NO_DATA,