summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.bin/openssl/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index ac183f28bf..6952226ffb 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.27 2019/07/03 03:24:02 deraadt Exp $ */ 1/* $OpenBSD: ca.c,v 1.28 2020/12/16 18:53:10 tb 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 *
@@ -219,7 +219,7 @@ static int
219setCertificateTime(ASN1_TIME *x509time, char *timestring) 219setCertificateTime(ASN1_TIME *x509time, char *timestring)
220{ 220{
221 struct tm tm1; 221 struct tm tm1;
222 memset(&tm1, 0, sizeof(tm1)); 222
223 if (ASN1_time_parse(timestring, strlen(timestring), &tm1, 0) == -1) 223 if (ASN1_time_parse(timestring, strlen(timestring), &tm1, 0) == -1)
224 return (-1); 224 return (-1);
225 if (!ASN1_TIME_set_tm(x509time, &tm1)) 225 if (!ASN1_TIME_set_tm(x509time, &tm1))