summaryrefslogtreecommitdiffstats
path: root/stack/rfcomm/rfc_mx_fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/rfcomm/rfc_mx_fsm.c')
-rw-r--r--stack/rfcomm/rfc_mx_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/rfcomm/rfc_mx_fsm.c b/stack/rfcomm/rfc_mx_fsm.c
index a7ffca57f..5c1c1a698 100644
--- a/stack/rfcomm/rfc_mx_fsm.c
+++ b/stack/rfcomm/rfc_mx_fsm.c
@@ -596,7 +596,7 @@ static void rfc_mx_conf_cnf (tRFC_MCB *p_mcb, tL2CAP_CFG_INFO *p_cfg)
{
RFCOMM_TRACE_EVENT ("rfc_mx_conf_cnf p_cfg:%08x res:%d ", p_cfg, (p_cfg) ? p_cfg->result : 0);
- if (p_cfg->result != L2CAP_CFG_OK)
+ if (p_cfg && p_cfg->result != L2CAP_CFG_OK)
{
if (p_mcb->is_initiator)
{