Commit 72ae2f3d authored by Simon Kelley's avatar Simon Kelley

Don't validate error returns.

parent 6c0cb858
...@@ -955,6 +955,9 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch ...@@ -955,6 +955,9 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
int type1, class1, rdlen1, type2, class2, rdlen2; int type1, class1, rdlen1, type2, class2, rdlen2;
int i, j, rc; int i, j, rc;
if (RCODE(header) != NXDOMAIN && RCODE(header) != NOERROR)
return STAT_INSECURE;
if (!(ans_start = skip_questions(header, plen))) if (!(ans_start = skip_questions(header, plen)))
return STAT_INSECURE; return STAT_INSECURE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment