diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2012-12-05 12:53:50 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2012-12-05 12:53:50 +0000 |
commit | a503af91a8a93bdaeb15b5467c2d98018eb719c5 (patch) | |
tree | dfe0c09893b34b160ac11d74d2862e8f52ed43fe /lib/dns/validator.c | |
parent | 8d876c495fa11d5aa72e8340d4b6efa1e911030b (diff) |
Notes
Diffstat (limited to 'lib/dns/validator.c')
-rw-r--r-- | lib/dns/validator.c | 10 |
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) |