From a931e8abeae9673086c9b2e44a07ef4a31f44bb1 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 16 Dec 2020 18:53:10 +0000 Subject: Remove a redundant memset call. --- src/usr.bin/openssl/ca.c | 4 ++-- 1 file 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 @@ -/* $OpenBSD: ca.c,v 1.27 2019/07/03 03:24:02 deraadt Exp $ */ +/* $OpenBSD: ca.c,v 1.28 2020/12/16 18:53:10 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -219,7 +219,7 @@ static int setCertificateTime(ASN1_TIME *x509time, char *timestring) { struct tm tm1; - memset(&tm1, 0, sizeof(tm1)); + if (ASN1_time_parse(timestring, strlen(timestring), &tm1, 0) == -1) return (-1); if (!ASN1_TIME_set_tm(x509time, &tm1)) -- cgit v1.2.3-55-g6feb