summaryrefslogtreecommitdiffstats
path: root/stack/rfcomm/rfc_ts_frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/rfcomm/rfc_ts_frames.c')
-rw-r--r--stack/rfcomm/rfc_ts_frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/rfcomm/rfc_ts_frames.c b/stack/rfcomm/rfc_ts_frames.c
index c234430c8..8a83e429b 100644
--- a/stack/rfcomm/rfc_ts_frames.c
+++ b/stack/rfcomm/rfc_ts_frames.c
@@ -605,7 +605,7 @@ UINT8 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);
}