From 9757effdc171aa24dae9c2d1abb350db231c32be Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 23 Feb 2018 14:49:06 -0700 Subject: [PATCH] fix for static analysis warning of null dereference --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 84f46ce5a..a2efd2c27 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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;