summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
diff options
context:
space:
mode:
authortb <>2020-12-16 18:46:29 +0000
committertb <>2020-12-16 18:46:29 +0000
commit2d649fb862299ef0f2791061ba40f71fe7b08c65 (patch)
tree377e0e7a4aa02da112faf133b333399bdf330530 /src/lib/libcrypto/x509
parent7acd284c4d78238b8bbf000888d4202db260a247 (diff)
downloadopenbsd-2d649fb862299ef0f2791061ba40f71fe7b08c65.tar.gz
openbsd-2d649fb862299ef0f2791061ba40f71fe7b08c65.tar.bz2
openbsd-2d649fb862299ef0f2791061ba40f71fe7b08c65.zip
Remove two reduntat memset calls.
pointed out by jsing
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c
index 59a8a1e5b6..88a7ef034d 100644
--- a/src/lib/libcrypto/x509/x509_verify.c
+++ b/src/lib/libcrypto/x509/x509_verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_verify.c,v 1.24 2020/11/18 17:54:46 tb Exp $ */ 1/* $OpenBSD: x509_verify.c,v 1.25 2020/12/16 18:46:29 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -604,8 +604,6 @@ x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter)
604{ 604{
605 int type; 605 int type;
606 606
607 memset(tm, 0, sizeof(*tm));
608
609 type = ASN1_time_parse(atime->data, atime->length, tm, atime->type); 607 type = ASN1_time_parse(atime->data, atime->length, tm, atime->type);
610 if (type == -1) 608 if (type == -1)
611 return 0; 609 return 0;