mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
e76c49de33
Original commit message:
ares_parse_naptr_reply: make buffer length check more accurate
9478908a490a6bf009ba58d81de8c1d06d50a117 introduced a length check
for records parsed by `ares_parse_naptr_reply()`. However, that
function is designed to parse replies which also contain non-NAPTR
records; for A records, the `rr_len > 7` check will fail as there
are only 4 bytes of payload.
In particular, parsing ANY replies for NAPTR records was broken
by that patch.
Fix that by moving the check into the case in which it is already
known that the record is a NAPTR record.
Ref:
|
||
---|---|---|
.. | ||
cares | ||
gtest | ||
http_parser | ||
icu-small | ||
node-inspect | ||
npm | ||
openssl | ||
uv | ||
v8 | ||
zlib |