add arg check, wolfSSL_CTX_clear_options

This commit is contained in:
Takashi Kojo 2017-12-16 09:03:44 +09:00
parent 6421324287
commit 7a59275688

View File

@ -11494,6 +11494,8 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
long wolfSSL_CTX_clear_options(WOLFSSL_CTX* ctx, long opt)
{
WOLFSSL_ENTER("SSL_CTX_clear_options");
if(ctx == NULL)
return BAD_FUNC_ARG;
ctx->mask &= ~opt;
return ctx->mask;
}