If gmtime() returned NULL (and we couldn't fix it à la VMS), let's

return NULL.
PR: 228
This commit is contained in:
Richard Levitte 2002-08-16 11:55:54 +00:00
parent 317521eebd
commit f0a4a3bc0e

View file

@ -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))
{