We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d351120 commit ed00182Copy full SHA for ed00182
1 file changed
src/ssl.c
@@ -7952,9 +7952,10 @@ int wolfSSL_EnableOCSP(WOLFSSL* ssl, int options)
7952
int wolfSSL_DisableOCSP(WOLFSSL* ssl)
7953
{
7954
WOLFSSL_ENTER("wolfSSL_DisableOCSP");
7955
- SSL_CM_WARNING(ssl);
7956
- if (ssl)
+ if (ssl) {
+ SSL_CM_WARNING(ssl);
7957
return wolfSSL_CertManagerDisableOCSP(SSL_CM(ssl));
7958
+ }
7959
else
7960
return BAD_FUNC_ARG;
7961
}
@@ -7963,9 +7964,10 @@ int wolfSSL_DisableOCSP(WOLFSSL* ssl)
7963
7964
int wolfSSL_EnableOCSPStapling(WOLFSSL* ssl)
7965
7966
WOLFSSL_ENTER("wolfSSL_EnableOCSPStapling");
7967
7968
7969
return wolfSSL_CertManagerEnableOCSPStapling(SSL_CM(ssl));
7970
7971
7972
7973
0 commit comments