Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 546c8ff7 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Android Git Automerger
Browse files

am f6111b9c: am c435a11a: Fix a NULL-pointer crash

* commit 'f6111b9c':
  Fix a NULL-pointer crash
parents 63e034e3 f6111b9c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4277,6 +4277,7 @@ void btm_sec_encrypt_change (UINT16 handle, UINT8 status, UINT8 encr_enable)
    if (acl_idx != MAX_L2CAP_LINKS)
    if (acl_idx != MAX_L2CAP_LINKS)
        p_acl = &btm_cb.acl_db[acl_idx];
        p_acl = &btm_cb.acl_db[acl_idx];


    if (p_acl != NULL)
        btm_sec_check_pending_enc_req(p_dev_rec, p_acl->transport, encr_enable);
        btm_sec_check_pending_enc_req(p_dev_rec, p_acl->transport, encr_enable);


    if (p_acl && p_acl->transport == BT_TRANSPORT_LE)
    if (p_acl && p_acl->transport == BT_TRANSPORT_LE)