Skip to content

Commit ed00182

Browse files
Fix for dereference CID 327300 & CID 327301
1 parent d351120 commit ed00182

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/ssl.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7952,9 +7952,10 @@ int wolfSSL_EnableOCSP(WOLFSSL* ssl, int options)
79527952
int wolfSSL_DisableOCSP(WOLFSSL* ssl)
79537953
{
79547954
WOLFSSL_ENTER("wolfSSL_DisableOCSP");
7955-
SSL_CM_WARNING(ssl);
7956-
if (ssl)
7955+
if (ssl) {
7956+
SSL_CM_WARNING(ssl);
79577957
return wolfSSL_CertManagerDisableOCSP(SSL_CM(ssl));
7958+
}
79587959
else
79597960
return BAD_FUNC_ARG;
79607961
}
@@ -7963,9 +7964,10 @@ int wolfSSL_DisableOCSP(WOLFSSL* ssl)
79637964
int wolfSSL_EnableOCSPStapling(WOLFSSL* ssl)
79647965
{
79657966
WOLFSSL_ENTER("wolfSSL_EnableOCSPStapling");
7966-
SSL_CM_WARNING(ssl);
7967-
if (ssl)
7967+
if (ssl) {
7968+
SSL_CM_WARNING(ssl);
79687969
return wolfSSL_CertManagerEnableOCSPStapling(SSL_CM(ssl));
7970+
}
79697971
else
79707972
return BAD_FUNC_ARG;
79717973
}

0 commit comments

Comments
 (0)