summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2020-12-16 18:53:10 +0000
committertb <>2020-12-16 18:53:10 +0000
commita931e8abeae9673086c9b2e44a07ef4a31f44bb1 (patch)
treebfc726d11caa1d5db3a91cee1a83e6e842f5566b /src
parent2d649fb862299ef0f2791061ba40f71fe7b08c65 (diff)
downloadopenbsd-a931e8abeae9673086c9b2e44a07ef4a31f44bb1.tar.gz
openbsd-a931e8abeae9673086c9b2e44a07ef4a31f44bb1.tar.bz2
openbsd-a931e8abeae9673086c9b2e44a07ef4a31f44bb1.zip
Remove a redundant memset call.
Diffstat (limited to 'src')
-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))