In ng_btsocket_rfcomm_receive_frame() correctly set length variable when
EA bit is set in hdr->length (16-bit length). This currently has no effect on the rest of the code. It just fixes the debug message. MFC After: 3 weeks
This commit is contained in:
parent
e43b83b1a4
commit
f93b258c94
@ -1843,7 +1843,7 @@ ng_btsocket_rfcomm_receive_frame(ng_btsocket_rfcomm_session_p s,
|
||||
/* Test EA bit in length. If not set then we have 2 bytes of length */
|
||||
if (!RFCOMM_EA(hdr->length)) {
|
||||
bcopy(&hdr->length, &length, sizeof(length));
|
||||
length = le16toh(length);
|
||||
length = le16toh(length) >> 1;
|
||||
m_adj(m0, sizeof(*hdr) + 1);
|
||||
} else {
|
||||
length = hdr->length >> 1;
|
||||
|
Loading…
Reference in New Issue
Block a user