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

@ -26,6 +26,7 @@ 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:

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