forked from wolfSSL/wolfssl
NULL dereference.
This commit is contained in:
@ -24901,6 +24901,9 @@ int wolfSSL_X509_cmp_time(const WOLFSSL_ASN1_TIME* asnTime, time_t* cmpTime)
|
|||||||
/* Convert to time struct*/
|
/* Convert to time struct*/
|
||||||
ct = XGMTIME(pTime, tmpTs);
|
ct = XGMTIME(pTime, tmpTs);
|
||||||
|
|
||||||
|
if (ct == NULL)
|
||||||
|
return GETTIME_ERROR;
|
||||||
|
|
||||||
/* DateGreaterThan returns 1 for >; 0 for <= */
|
/* DateGreaterThan returns 1 for >; 0 for <= */
|
||||||
ret = DateGreaterThan(&ts, ct) ? 1 : -1;
|
ret = DateGreaterThan(&ts, ct) ? 1 : -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user