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

Commit d0f299e9 authored by Prabhu MC's avatar Prabhu MC Committed by William Escande
Browse files

check p_db pointer for NULL check

since during incoming sdp connection and query , p_db could be NULL.
Cherry-pick from wear os

Bug: 263323082
bug: 264015001
Test: manual pairing and connection test with phone
Change-Id: Ie55894fe36fc288f64576e21690bd404c8317565
(cherry picked from commit a0f97071dba4a1798091717f93bc4cee23244334)
parent 2bcc942a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -337,7 +337,7 @@ static bool sdp_copy_raw_data(tCONN_CB* p_ccb, bool offset) {
  uint8_t* p_end;
  uint8_t type;

  if (p_ccb->p_db->raw_data) {
  if (p_ccb->p_db && p_ccb->p_db->raw_data) {
    cpy_len = p_ccb->p_db->raw_size - p_ccb->p_db->raw_used;
    list_len = p_ccb->list_len;
    p = &p_ccb->rsp_list[0];