From: zhiweijian Date: Fri, 23 Nov 2018 12:14:03 +0000 (+0800) Subject: Component/bt: fix accept specified sec auth error X-Git-Tag: v3.2-beta3~73^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca51b60033ec06a8e2be7a85c5d8b95587f3775c;p=esp-idf Component/bt: fix accept specified sec auth error --- diff --git a/components/bt/bluedroid/stack/smp/smp_act.c b/components/bt/bluedroid/stack/smp/smp_act.c index 87d7b978dd..b8ec3691fb 100644 --- a/components/bt/bluedroid/stack/smp/smp_act.c +++ b/components/bt/bluedroid/stack/smp/smp_act.c @@ -596,6 +596,7 @@ void smp_proc_pair_cmd(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) } reason = SMP_PAIR_AUTH_FAIL; smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); + return; } } @@ -634,6 +635,7 @@ void smp_proc_pair_cmd(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) } reason = SMP_PAIR_AUTH_FAIL; smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); + return; } } @@ -1395,6 +1397,7 @@ void smp_process_io_response(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) } reason = SMP_PAIR_AUTH_FAIL; smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); + return; } }