From 15512fa62e34a4703d9f430c652ea37068e1ce6c Mon Sep 17 00:00:00 2001 From: beck <> Date: Mon, 3 Apr 2017 15:52:59 +0000 Subject: 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@ --- src/lib/libcrypto/asn1/t_x509.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index 14cbabedc7..3dfaaa40bc 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/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; -- cgit v1.2.3-55-g6feb