summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index f0e3e8609..881f4b909 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -2376,8 +2376,8 @@ static int instanceLinkNegotiateTLS(redisAsyncContext *context) {
#ifndef USE_OPENSSL
(void) context;
#else
- SSL_CTX *redis_tls_ctx = connTypeGetCtx(CONN_TYPE_TLS);
- SSL_CTX *redis_tls_client_ctx = connTypeGetClientCtx(CONN_TYPE_TLS);
+ SSL_CTX *redis_tls_ctx = connTypeGetCtx(connectionTypeTls());
+ SSL_CTX *redis_tls_client_ctx = connTypeGetClientCtx(connectionTypeTls());
if (!redis_tls_ctx) return C_ERR;
SSL *ssl = SSL_new(redis_tls_client_ctx ? redis_tls_client_ctx : redis_tls_ctx);