Commit ddc225b1 authored by Evan Hunt's avatar Evan Hunt
Browse files

2651. [bug] Dates could print incorrectly in K*.key files on

			64-bit systems. [RT #20076]
parent 3d2ce185
2651. [bug] Dates could print incorrectly in K*.key files on
64-bit systems. [RT #20076]
2650. [bug] Assertion failure in dnssec-signzone when trying
to read keyset-* files. [RT #20075]
......
......@@ -31,7 +31,7 @@
/*
* Principal Author: Brian Wellington
* $Id: dst_api.c,v 1.25 2009/07/29 23:45:24 each Exp $
* $Id: dst_api.c,v 1.26 2009/08/14 06:28:40 each Exp $
*/
/*! \file */
......@@ -1138,14 +1138,17 @@ issymmetric(const dst_key_t *key) {
static void
printtime(const dst_key_t *key, int type, const char *tag, FILE *stream) {
isc_result_t result;
isc_stdtime_t when;
const char *output;
isc_stdtime_t when;
time_t t;
result = dst_key_gettime(key, type, &when);
if (result == ISC_R_NOTFOUND)
return;
output = ctime((time_t *) &when);
/* time_t and isc_stdtime_t might be different sizes */
t = when;
output = ctime(&t);
fprintf(stream, "%s: %s", tag, output);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment