diff --git a/ChangeLog b/ChangeLog index 7beebab4..4b17fd89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,7 +17,8 @@ Changes in current version: o move EV_PERSIST handling out of the event backends o support for 32-bit tag numbers in rpc structures; this is wire compatible, but changes the API slightly. o prefix {encode,decode}_tag functions with evtag to avoid collisions - + o Correctly handle DNS replies with no answers set (Fixes bug 1846282) + Changes in 1.4.0-beta: o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr. diff --git a/evdns.c b/evdns.c index 06b9fcdc..40807372 100644 --- a/evdns.c +++ b/evdns.c @@ -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