diff options
author | emax <emax@FreeBSD.org> | 2004-02-25 22:43:43 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-02-25 22:43:43 +0000 |
commit | 79ae057bef0a8c333d2cf506a7a5928ed2f67b34 (patch) | |
tree | 2de1e094ab8382ce83f40ec2f5136f861678b3a2 /usr.sbin | |
parent | 33fda27b84c806b7fe80fe9060801e5d3a8824a5 (diff) | |
download | FreeBSD-src-79ae057bef0a8c333d2cf506a7a5928ed2f67b34.zip FreeBSD-src-79ae057bef0a8c333d2cf506a7a5928ed2f67b34.tar.gz |
Fix endianes bug
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bluetooth/sdpd/ssr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/sdpd/ssr.c b/usr.sbin/bluetooth/sdpd/ssr.c index 807ceff..2ba6790 100644 --- a/usr.sbin/bluetooth/sdpd/ssr.c +++ b/usr.sbin/bluetooth/sdpd/ssr.c @@ -224,6 +224,9 @@ server_send_service_search_response(server_p srv, int32_t fd) pdu.tid = ((sdp_pdu_p)(srv->req))->tid; pdu.len = htons(sizeof(rcounts) + rcounts[1] * 4 + 1 + cs[0]); + rcounts[0] = htons(rcounts[0]); + rcounts[1] = htons(rcounts[1]); + iov[0].iov_base = &pdu; iov[0].iov_len = sizeof(pdu); |