diff options
author | beck <> | 2017-04-03 15:52:59 +0000 |
---|---|---|
committer | beck <> | 2017-04-03 15:52:59 +0000 |
commit | 6261bdad2c3ea049a46268fd950d6f984fed9294 (patch) | |
tree | 442046e9136d1a1059a425f1a9e4cdd33679ec3b /src/lib | |
parent | edbc98f3d5629f6851b8036e9a88c53019b5b205 (diff) | |
download | openbsd-6261bdad2c3ea049a46268fd950d6f984fed9294.tar.gz openbsd-6261bdad2c3ea049a46268fd950d6f984fed9294.tar.bz2 openbsd-6261bdad2c3ea049a46268fd950d6f984fed9294.zip |
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@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/asn1/t_x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
1 | /* $OpenBSD: t_x509.c,v 1.27 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: t_x509.c,v 1.28 2017/04/03 15:52:59 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -398,7 +398,7 @@ ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) | |||
398 | int gmt = 0; | 398 | int gmt = 0; |
399 | int i; | 399 | int i; |
400 | int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0; | 400 | int y = 0, M = 0, d = 0, h = 0, m = 0, s = 0; |
401 | char *f = NULL; | 401 | char *f = ""; |
402 | int f_len = 0; | 402 | int f_len = 0; |
403 | 403 | ||
404 | i = tm->length; | 404 | i = tm->length; |