diff options
| author | tb <> | 2020-12-16 18:53:10 +0000 |
|---|---|---|
| committer | tb <> | 2020-12-16 18:53:10 +0000 |
| commit | 4950cd5ba18509d9b030ea25b45c9c2a552762df (patch) | |
| tree | bfc726d11caa1d5db3a91cee1a83e6e842f5566b /src | |
| parent | 6beaabfe49252420dfbd80598c2dc71f85ea6a6f (diff) | |
| download | openbsd-4950cd5ba18509d9b030ea25b45c9c2a552762df.tar.gz openbsd-4950cd5ba18509d9b030ea25b45c9c2a552762df.tar.bz2 openbsd-4950cd5ba18509d9b030ea25b45c9c2a552762df.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)) |
