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

Commit d1327a5f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "bta_jv_act: Avoid potential NULL dereference"

parents 210b0109 827f9855
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2117,11 +2117,12 @@ static void fcchan_data_cbk(uint16_t chan, const RawAddress& bd_addr,
  if (tc) {
    // try to find an open socked for that addr and channel
    t = fcclient_find_by_addr(tc->clients, &bd_addr);
  }
  if (!t) {
    // no socket -> drop it
    return;
  }
  }


  sock_cback = t->p_cback;
  sock_id = t->l2cap_socket_id;