From: Dr. Stephen Henson Date: Fri, 23 Sep 2011 13:39:35 +0000 (+0000) Subject: PR: 2606 X-Git-Tag: OpenSSL_1_0_1-beta1~146 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8f31f80d1d4e060019078ea1b0fcf51462efd71;p=oweals%2Fopenssl.git PR: 2606 Submitted by: Christoph Viethen Reviewed by: steve Handle timezones correctly in UTCTime. --- diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 0381c4a502..b0779db023 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -1727,7 +1727,7 @@ int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) atm.length=sizeof(buff2); atm.data=(unsigned char *)buff2; - if (X509_time_adj(&atm,-offset*60, cmp_time) == NULL) + if (X509_time_adj(&atm, offset*60, cmp_time) == NULL) return 0; if (ctm->type == V_ASN1_UTCTIME)