mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 21:54:41 +02:00
add arg check, wolfSSL_CTX_clear_options
This commit is contained in:
@@ -11494,6 +11494,8 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
|
|||||||
long wolfSSL_CTX_clear_options(WOLFSSL_CTX* ctx, long opt)
|
long wolfSSL_CTX_clear_options(WOLFSSL_CTX* ctx, long opt)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("SSL_CTX_clear_options");
|
WOLFSSL_ENTER("SSL_CTX_clear_options");
|
||||||
|
if(ctx == NULL)
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
ctx->mask &= ~opt;
|
ctx->mask &= ~opt;
|
||||||
return ctx->mask;
|
return ctx->mask;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user