]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
DNS_VALIDATOR_NONTA needs passed to sub validator
authorMark Andrews <marka@isc.org>
Wed, 2 Jul 2014 04:12:15 +0000 (14:12 +1000)
committerMark Andrews <marka@isc.org>
Wed, 2 Jul 2014 04:12:15 +0000 (14:12 +1000)
lib/dns/validator.c

index 36fe54330ba5448d5ca18871695adb8e7ed98176..e53c2488f366859f08403412c99dfe860270f973 100644 (file)
@@ -1169,8 +1169,8 @@ create_validator(dns_validator_t *val, dns_name_t *name, dns_rdatatype_t type,
                return (DNS_R_NOVALIDSIG);
        }
 
-       /* OK to clear other options, but preserve NOCDFLAG */
-       vopts |= (val->options & DNS_VALIDATOR_NOCDFLAG);
+       /* OK to clear other options, but preserve NOCDFLAG and NONTA. */
+       vopts |= (val->options & (DNS_VALIDATOR_NOCDFLAG|DNS_VALIDATOR_NONTA));
 
        validator_logcreate(val, name, type, caller, "validator");
        result = dns_validator_create(val->view, name, type,