r15519@tombo: nickm | 2007-12-16 13:54:12 -0500

Fix for bug 1846282: accept as well-formed DNS replies with questions but no answers.


svn:r595
This commit is contained in:
Nick Mathewson 2007-12-16 18:55:16 +00:00
parent 7aa845b73b
commit 7ab26a2c32
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
Changes in current version:
o free minheap on event_base_free(); from Christopher Layne
o debug cleanups in signal.c; from Christopher Layne
o provide event_base_new() that does not set the current_base global
o provide event_base_new() that does not set the current_base global
o bufferevent_write now uses a const source argument; report from Charles Kerr
o improve documentation on event_base_loopexit; patch from Scott Lamb
o New function, event_{base_}loopbreak. Like event_loopexit, it makes an event loop stop executing and return. Unlike event_loopexit, it keeps subsequent pending events from getting executed. Patch from Scott Lamb
@ -26,7 +26,8 @@ Changes in current version:
o prefix {encode,decode}_tag functions with evtag to avoid collisions
o fix a bug with event_rpcgen for integers
o restructure the code to make event activation independent of regular event logic
o Correctly handle DNS replies with no answers set (Fixes bug 1846282)
Changes in 1.4.0:
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.

View File

@ -867,7 +867,7 @@ reply_parse(u8 *packet, int length) {
*/
SKIP_NAME;
j += 4;
if (j >= length) goto err;
if (j > length) goto err;
}
/* now we have the answer section which looks like