Fix endianes bug
This commit is contained in:
parent
e9c67f69d1
commit
167bc3861d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126245
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user