mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
3268. [bug] Convert RRSIG expiry times to 64 timestamps to work
out the earliest expiry time. [RT #23311]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: time.c,v 1.37 2011/03/09 23:47:17 tbox Exp $ */
|
||||
/* $Id: time.c,v 1.38 2012/01/27 01:43:51 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -103,8 +103,8 @@ dns_time64_totext(isc_int64_t t, isc_buffer_t *target) {
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
dns_time32_totext(isc_uint32_t value, isc_buffer_t *target) {
|
||||
isc_int64_t
|
||||
dns_time64_from32(isc_uint32_t value) {
|
||||
isc_stdtime_t now;
|
||||
isc_int64_t start;
|
||||
isc_int64_t t;
|
||||
@@ -121,7 +121,13 @@ dns_time32_totext(isc_uint32_t value, isc_buffer_t *target) {
|
||||
t = start + (value - now);
|
||||
else
|
||||
t = start - (now - value);
|
||||
return (dns_time64_totext(t, target));
|
||||
|
||||
return (t);
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
dns_time32_totext(isc_uint32_t value, isc_buffer_t *target) {
|
||||
return (dns_time64_totext(dns_time64_from32(value), target));
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
|
Reference in New Issue
Block a user