diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-04-03 15:53:00 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-04-03 15:53:00 +0000 |
commit | 455b449fb5b8e1c0520fd45fcbd1bc39e857d3e6 (patch) | |
tree | 3c7f43d61e74ca6d147d2bd2a71ccefb4955d900 | |
parent | 444ac0a4b9add8d6eff04e13062fdaea8c13efd7 (diff) |
Fix silly code that printfs NULL when there are no fractional seconds
on a GENREALIZEDTIME (which there should really never be for anything
remotely standards compliant)
ok jsing@
-rw-r--r-- | lib/libcrypto/asn1/t_x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/t_x509.c b/lib/libcrypto/asn1/t_x509.c index 14cbabedc72..3dfaaa40bca 100644 --- a/lib/libcrypto/asn1/t_x509.c +++ b/lib/libcrypto/asn1/t_x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t_x509.c,v 1.27 2017/01/29 17:49:22 beck Exp $ */ +/* $OpenBSD: t_x509.c,v 1.28 2017/04/03 15:52:59 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -398,7 +398,7 @@ ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) int gmt = 0; int i; int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0; - char *f = NULL; + char *f = ""; int f_len = 0; i = tm->length; |