From: Richard Levitte Date: Fri, 16 Aug 2002 11:55:54 +0000 (+0000) Subject: If gmtime() returned NULL (and we couldn't fix it à la VMS), let's X-Git-Tag: OpenSSL_0_9_6h~108 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0a4a3bc0e1d52da6f8f6ff67dfb847b66c08db9;p=oweals%2Fopenssl.git If gmtime() returned NULL (and we couldn't fix it à la VMS), let's return NULL. PR: 228 --- diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c index dd5955ac9f..1aafb663f6 100644 --- a/crypto/asn1/a_utctm.c +++ b/crypto/asn1/a_utctm.c @@ -246,6 +246,8 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t) ts=(struct tm *)localtime(&t); } #endif + if (ts == NULL) + return(NULL); p=(char *)s->data; if ((p == NULL) || (s->length < 14)) {