diff --git a/src/tls.c b/src/tls.c index e709c9930..7920b5f4e 100644 --- a/src/tls.c +++ b/src/tls.c @@ -211,6 +211,7 @@ static SSL_CTX *createSSLContext(redisTLSContextConfig *ctx_config, int protocol SSL_CTX *ctx = NULL; ctx = SSL_CTX_new(SSLv23_method()); + if (!ctx) goto error; SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3);