Commit e0884144 authored by Mark Andrews's avatar Mark Andrews

report OPT records if rcode is FORMERR

parent 68add7e9
Pipeline #15510 passed with stages
in 1 minute and 18 seconds
......@@ -2976,7 +2976,8 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
}
if (!seenopt && opts[item->test].udpsize)
addtag(item, "noopt"), ok = 0;
if (seenopt && opts[item->test].udpsize == 0)
if (seenopt &&
(opts[item->test].udpsize == 0 || rcode == ns_r_formerr))
addtag(item, "opt"), ok = 0;
if (opts[item->test].type == ns_t_soa)
if (opts[item->test].version == 0 &&
......
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