summaryrefslogtreecommitdiff
path: root/lib/dns/validator.c
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2012-12-05 12:53:50 +0000
committerErwin Lansing <erwin@FreeBSD.org>2012-12-05 12:53:50 +0000
commita503af91a8a93bdaeb15b5467c2d98018eb719c5 (patch)
treedfe0c09893b34b160ac11d74d2862e8f52ed43fe /lib/dns/validator.c
parent8d876c495fa11d5aa72e8340d4b6efa1e911030b (diff)
Notes
Diffstat (limited to 'lib/dns/validator.c')
-rw-r--r--lib/dns/validator.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/dns/validator.c b/lib/dns/validator.c
index 3f9aae7f3987..674675fc7396 100644
--- a/lib/dns/validator.c
+++ b/lib/dns/validator.c
@@ -2075,15 +2075,13 @@ validate(dns_validator_t *val, isc_boolean_t resume) {
validator_log(val, ISC_LOG_DEBUG(3),
"failed to verify rdataset");
else {
- isc_uint32_t ttl;
isc_stdtime_t now;
isc_stdtime_get(&now);
- ttl = ISC_MIN(event->rdataset->ttl,
- ISC_MIN(val->siginfo->originalttl,
- val->siginfo->timeexpire - now));
- event->rdataset->ttl = ttl;
- event->sigrdataset->ttl = ttl;
+ dns_rdataset_trimttl(event->rdataset,
+ event->sigrdataset,
+ val->siginfo, now,
+ val->view->acceptexpired);
}
if (val->keynode != NULL)