summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-05-07 16:55:12 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-05-07 16:57:18 +0100
commite48f2b5b162c82ed8be7ea8fd85e562a5c5de11b (patch)
tree3766315fe0c84d95386a7f889ad2c56a7daeccbb /test/src
parent06d80058fa084f672f544ae4e12866796e5f759c (diff)
downloadexim4-e48f2b5b162c82ed8be7ea8fd85e562a5c5de11b.tar.gz
Testsuite: fix fakens to not claim that an unsupported NXDOMAIN is dnssec-AD
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fakens.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/src/fakens.c b/test/src/fakens.c
index 0806136cc..34f5ea670 100644
--- a/test/src/fakens.c
+++ b/test/src/fakens.c
@@ -342,9 +342,6 @@ if (typeptr->name == NULL)
rrdomain[0] = 0; /* No previous domain */
(void)fseek(f, 0, SEEK_SET); /* Start again at the beginning */
-if (dnssec) *dnssec = TRUE; /* cancelled by first nonsecure rec found */
-if (aa) *aa = TRUE; /* cancelled by first non-aa rec found */
-
/* Scan for RRs */
while (fgets(CS buffer, sizeof(buffer), f) != NULL)
@@ -438,7 +435,12 @@ while (fgets(CS buffer, sizeof(buffer), f) != NULL)
/* The domain matches */
- if (yield == HOST_NOT_FOUND) yield = NO_DATA;
+ if (yield == HOST_NOT_FOUND)
+ {
+ yield = NO_DATA;
+ if (dnssec) *dnssec = TRUE; /* cancelled by first nonsecure rec found */
+ if (aa) *aa = TRUE; /* cancelled by first non-aa rec found */
+ }
/* Compare RR types; a CNAME record is always returned */