forked from wolfSSL/wolfssl
add NULL ctx argument check to wolfSSL_X509_STORE_CTX_set_time()
This commit is contained in:
@ -16662,6 +16662,9 @@ void wolfSSL_X509_STORE_CTX_set_time(WOLFSSL_X509_STORE_CTX* ctx,
|
|||||||
{
|
{
|
||||||
(void)flags;
|
(void)flags;
|
||||||
|
|
||||||
|
if (ctx == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
ctx->param->check_time = t;
|
ctx->param->check_time = t;
|
||||||
ctx->param->flags |= WOLFSSL_USE_CHECK_TIME;
|
ctx->param->flags |= WOLFSSL_USE_CHECK_TIME;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user