Skip to content

Commit 99d46d9

Browse files
fix for derefernce warning CID 327296 & CID 327298
1 parent 3c23f39 commit 99d46d9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ssl.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7997,8 +7997,8 @@ int wolfSSL_SetOCSP_Cb(WOLFSSL* ssl,
79977997
CbOCSPIO ioCb, CbOCSPRespFree respFreeCb, void* ioCbCtx)
79987998
{
79997999
WOLFSSL_ENTER("wolfSSL_SetOCSP_Cb");
8000-
SSL_CM_WARNING(ssl);
80018000
if (ssl) {
8001+
SSL_CM_WARNING(ssl);
80028002
ssl->ocspIOCtx = ioCbCtx; /* use SSL specific ioCbCtx */
80038003
return wolfSSL_CertManagerSetOCSP_Cb(SSL_CM(ssl),
80048004
ioCb, respFreeCb, NULL);
@@ -8589,9 +8589,10 @@ int wolfSSL_trust_peer_cert(WOLFSSL* ssl, const char* file, int type)
85898589
int wolfSSL_EnableCRL(WOLFSSL* ssl, int options)
85908590
{
85918591
WOLFSSL_ENTER("wolfSSL_EnableCRL");
8592-
SSL_CM_WARNING(ssl);
8593-
if (ssl)
8592+
if (ssl) {
8593+
SSL_CM_WARNING(ssl);
85948594
return wolfSSL_CertManagerEnableCRL(SSL_CM(ssl), options);
8595+
}
85958596
else
85968597
return BAD_FUNC_ARG;
85978598
}

0 commit comments

Comments
 (0)