summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <theo.buehler@cysec.systems>2020-04-22 09:43:01 +0200
committerantirez <antirez@gmail.com>2020-04-24 10:14:48 +0200
commitb0920e6e861acd05370f8c80688615b158c46b38 (patch)
tree57ecda6c44daf9c5c321a6d6281c748e16b51f9f
parent149b658b56503488705fec278f01864878540d76 (diff)
downloadredis-b0920e6e861acd05370f8c80688615b158c46b38.tar.gz
TLS: Fix build with SSL_OP_NO_CLIENT_RENEGOTIATION
There is no ssl in this scope, so the build breaks. All the other options are set directly on the ctx.
-rw-r--r--src/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls.c b/src/tls.c
index ea0c34469..c18aafebe 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -160,7 +160,7 @@ int tlsConfigure(redisTLSContextConfig *ctx_config) {
#endif
#ifdef SSL_OP_NO_CLIENT_RENEGOTIATION
- SSL_CTX_set_options(ssl->ctx, SSL_OP_NO_CLIENT_RENEGOTIATION);
+ SSL_CTX_set_options(ctx, SSL_OP_NO_CLIENT_RENEGOTIATION);
#endif
if (ctx_config->prefer_server_ciphers)