From f0a4a3bc0e1d52da6f8f6ff67dfb847b66c08db9 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 16 Aug 2002 11:55:54 +0000 Subject: [PATCH] =?utf8?q?If=20gmtime()=20returned=20NULL=20(and=20we=20co?= =?utf8?q?uldn't=20fix=20it=20=C3=A0=20la=20VMS),=20let's=20return=20NULL.?= =?utf8?q?=20PR:=20228?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- crypto/asn1/a_utctm.c | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.25.1