summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-04-06 18:55:58 +0000
committeremax <emax@FreeBSD.org>2005-04-06 18:55:58 +0000
commit04072c22e064afe7de282cd15cb0f1032c5e328e (patch)
treeb9a3a5a2b2b38e8980595c9e83995499c89a99eb /sys
parent42a71792948e4a4a2feac7b5e07823ed7862af4d (diff)
downloadFreeBSD-src-04072c22e064afe7de282cd15cb0f1032c5e328e.zip
FreeBSD-src-04072c22e064afe7de282cd15cb0f1032c5e328e.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
index 152a836..672c6fa 100644
--- a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
+++ b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
@@ -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;
OpenPOWER on IntegriCloud