Commit 42c384ee authored by Mark Andrews's avatar Mark Andrews

bad-expire/bad-subnet clear ok

parent 330c81df
Pipeline #43945 passed with stages
in 2 minutes and 28 seconds
......@@ -3061,6 +3061,12 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
if (cname + rrsig + found + dname != ancount) {
addtag(item, "extra"), ok = 0;
}
if (badecs) {
addtag(item, "subnet-bad"), ok = 0;
}
if (badexpire) {
addtag(item, "expire-bad"), ok = 0;
}
/* Only record seenrrsig if the test is "do". */
if (seenrrsig && strcmp(opts[item->test].name, "do") == 0)
......@@ -3073,10 +3079,9 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
addtag(item, "notc");
if (seennsid)
addtag(item, "nsid");
if (seenexpire)
if (seenexpire) {
addtag(item, "expire");
if (badexpire)
addtag(item, "expire-bad");
}
if (seencookie && goodcookie && opts[item->test].cookie) {
if (rcode == ns_r_badcookie)
addtag(item, "cookie+badcookie");
......@@ -3091,9 +3096,7 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
addtag(item, "cookie");
}
if (seenecs) {
if (badecs) {
addtag(item, "subnet-bad");
} else {
if (!badecs) {
addtag(item, "subnet");
}
}
......
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