diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-06-30 10:05:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-06-30 10:05:42 -0400 |
commit | 7ce767181f42879d48737ba69c4ce99963d76d9f (patch) | |
tree | 126d5545e52c09b2d3a2f221b55f187a20a86346 /src/or/eventdns.c | |
parent | 9fc3d8782776d6feff8fb6e239a66cc3c0f26d37 (diff) | |
download | tor-7ce767181f42879d48737ba69c4ce99963d76d9f.tar.gz tor-7ce767181f42879d48737ba69c4ce99963d76d9f.zip |
Have eventdns set the "truncated" bit correctly.
Fixed bug 1022; This isn't actually a live bug in Tor, since in Tor
we never generate large DNS replies.
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index 4464148141..4ae17a40c3 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1842,7 +1842,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 = (size_t)j; |