From: beck Date: Tue, 5 Jul 2016 03:24:38 +0000 (+0000) Subject: remove unneeded duplicate call - spotted by jsing@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c576c716b851ff8232b31670f28259a3c53e5020;p=openbsd remove unneeded duplicate call - spotted by jsing@ --- diff --git a/lib/libcrypto/ocsp/ocsp_cl.c b/lib/libcrypto/ocsp/ocsp_cl.c index 83615e5434f..5616ae1bb5d 100644 --- a/lib/libcrypto/ocsp/ocsp_cl.c +++ b/lib/libcrypto/ocsp/ocsp_cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_cl.c,v 1.9 2016/06/25 15:38:44 beck Exp $ */ +/* $OpenBSD: ocsp_cl.c,v 1.10 2016/07/05 03:24:38 beck Exp $ */ /* Written by Tom Titchener for the OpenSSL * project. */ @@ -364,8 +364,6 @@ OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, */ if (maxsec >= 0) { t_tmp = t_now - maxsec; - if (gmtime_r(&t_tmp, &tm_tmp) == NULL) - return 0; if (gmtime_r(&t_tmp, &tm_tmp) == NULL) return 0; if (asn1_tm_cmp(&tm_this, &tm_tmp) < 0) { diff --git a/lib/libssl/src/crypto/ocsp/ocsp_cl.c b/lib/libssl/src/crypto/ocsp/ocsp_cl.c index 83615e5434f..5616ae1bb5d 100644 --- a/lib/libssl/src/crypto/ocsp/ocsp_cl.c +++ b/lib/libssl/src/crypto/ocsp/ocsp_cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_cl.c,v 1.9 2016/06/25 15:38:44 beck Exp $ */ +/* $OpenBSD: ocsp_cl.c,v 1.10 2016/07/05 03:24:38 beck Exp $ */ /* Written by Tom Titchener for the OpenSSL * project. */ @@ -364,8 +364,6 @@ OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, */ if (maxsec >= 0) { t_tmp = t_now - maxsec; - if (gmtime_r(&t_tmp, &tm_tmp) == NULL) - return 0; if (gmtime_r(&t_tmp, &tm_tmp) == NULL) return 0; if (asn1_tm_cmp(&tm_this, &tm_tmp) < 0) {