The truncated bit is in the 3rd byte of a dns reply, not the 4th.

svn:r1331
This commit is contained in:
Nick Mathewson 2009-06-30 14:20:44 +00:00
parent 763391947c
commit a763e7416c
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Changes in 1.4.12-stable:
o Activate fd events in a pseudorandom order with O(N) backends, so that we don't systematically favor low fds (select) or earlier-added fds (poll, win32).
o Fix another pair of fencepost bugs in epoll.c. [Patch from Adam Langley.]
o Do not break evdns connections to nameservers when our IP changes.
o Set truncated flag correctly in evdns server replies.
Changes in 1.4.11-stable:
o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]

View File

@ -1703,7 +1703,7 @@ evdns_server_request_format_response(struct server_request *req, int err)
if (j > 512) {
overflow:
j = 512;
buf[3] |= 0x02; /* set the truncated bit. */
buf[2] |= 0x02; /* set the truncated bit. */
}
req->response_len = j;