From 6538ed1c39dade4e09573da85d608dc013b1beb6 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 25 Oct 2023 09:52:35 -0600 Subject: [PATCH] coverity fix for CID 327268 --- src/ssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index ae8ca740d..9ba44df3f 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -8715,9 +8715,10 @@ int wolfSSL_SetCRL_Cb(WOLFSSL* ssl, CbMissingCRL cb) int wolfSSL_SetCRL_IOCb(WOLFSSL* ssl, CbCrlIO cb) { WOLFSSL_ENTER("wolfSSL_SetCRL_Cb"); - SSL_CM_WARNING(ssl); - if (ssl) + if (ssl) { + SSL_CM_WARNING(ssl); return wolfSSL_CertManagerSetCRL_IOCb(SSL_CM(ssl), cb); + } else return BAD_FUNC_ARG; }