fix for static analysis warning of null dereference

This commit is contained in:
Jacob Barthelmeh 2018-02-23 14:49:06 -07:00
parent 6500c40015
commit 9757effdc1
1 changed files with 1 additions and 1 deletions

View File

@ -18922,7 +18922,7 @@ void wolfSSL_X509_STORE_CTX_set_time(WOLFSSL_X509_STORE_CTX* ctx,
{
(void)flags;
if (ctx == NULL)
if (ctx == NULL || ctx->param == NULL)
return;
ctx->param->check_time = t;