diff options
author | tb <> | 2020-12-16 18:53:10 +0000 |
---|---|---|
committer | tb <> | 2020-12-16 18:53:10 +0000 |
commit | a931e8abeae9673086c9b2e44a07ef4a31f44bb1 (patch) | |
tree | bfc726d11caa1d5db3a91cee1a83e6e842f5566b /src | |
parent | 2d649fb862299ef0f2791061ba40f71fe7b08c65 (diff) | |
download | openbsd-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.c | 4 |
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 | |||
219 | setCertificateTime(ASN1_TIME *x509time, char *timestring) | 219 | setCertificateTime(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)) |