summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ct/ct_prn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ct/ct_prn.c b/src/lib/libcrypto/ct/ct_prn.c
index 3b1be71394..37781ee37b 100644
--- a/src/lib/libcrypto/ct/ct_prn.c
+++ b/src/lib/libcrypto/ct/ct_prn.c
@@ -71,8 +71,7 @@ timestamp_print(uint64_t timestamp, BIO *out)
71 * Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15 71 * Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15
72 * characters long with a final Z. Update it with fractional seconds. 72 * characters long with a final Z. Update it with fractional seconds.
73 */ 73 */
74 snprintf(genstr, sizeof(genstr), "%.14s.%03dZ", 74 snprintf(genstr, sizeof(genstr), "%.14sZ", ASN1_STRING_get0_data(gen));
75 ASN1_STRING_get0_data(gen), (unsigned int)(timestamp % 1000));
76 if (ASN1_GENERALIZEDTIME_set_string(gen, genstr)) 75 if (ASN1_GENERALIZEDTIME_set_string(gen, genstr))
77 ASN1_GENERALIZEDTIME_print(out, gen); 76 ASN1_GENERALIZEDTIME_print(out, gen);
78 ASN1_GENERALIZEDTIME_free(gen); 77 ASN1_GENERALIZEDTIME_free(gen);