If gmtime() returned NULL (and we couldn't fix it à la VMS), let's
return NULL. PR: 228
This commit is contained in:
parent
317521eebd
commit
f0a4a3bc0e
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue