From 2d649fb862299ef0f2791061ba40f71fe7b08c65 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 16 Dec 2020 18:46:29 +0000 Subject: Remove two reduntat memset calls. pointed out by jsing --- src/lib/libcrypto/x509/x509_verify.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/libcrypto/x509') 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 @@ -/* $OpenBSD: x509_verify.c,v 1.24 2020/11/18 17:54:46 tb Exp $ */ +/* $OpenBSD: x509_verify.c,v 1.25 2020/12/16 18:46:29 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -604,8 +604,6 @@ x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) { int type; - memset(tm, 0, sizeof(*tm)); - type = ASN1_time_parse(atime->data, atime->length, tm, atime->type); if (type == -1) return 0; -- cgit v1.2.3-55-g6feb