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

Commit 30f83afd authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "Fix a wrong check in rfc_parse_data" into oc-dev am: eadeb92e am:...

Merge "Fix a wrong check in rfc_parse_data" into oc-dev am: eadeb92e am: 5e3142ac am: ba9e7ee3
am: 42f3e5ce

Change-Id: I79f1180ef4b7a4751d74f2cbb3573e540cdd134b
parents f2bfbc61 42f3e5ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -525,7 +525,7 @@ uint8_t rfc_parse_data(tRFC_MCB* p_mcb, MX_FRAME* p_frame, BT_HDR* p_buf) {

  eal = *(p_data)&RFCOMM_EA;
  len = *(p_data)++ >> RFCOMM_SHIFT_LENGTH1;
  if (eal == 0 && p_buf->len < RFCOMM_CTRL_FRAME_LEN) {
  if (eal == 0 && p_buf->len > RFCOMM_CTRL_FRAME_LEN) {
    len += (*(p_data)++ << RFCOMM_SHIFT_LENGTH2);
  } else if (eal == 0) {
    RFCOMM_TRACE_ERROR("Bad Length when EAL = 0: %d", p_buf->len);