From 04007cb08d38b0761b54b533555270492be44bdd Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 14 Dec 2022 10:34:36 +0100 Subject: [PATCH] CLEANUP: ssl: remove check on srv->proxy Remove a useless check on srv->proxy which triggers coverity. Should fix issue #1965. --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index cbc1eb94b..a36616289 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -5231,7 +5231,7 @@ int ssl_sock_prepare_srv_ctx(struct server *srv) SSL_CTX *ctx; /* Automatic memory computations need to know we use SSL there * If this is an internal proxy, don't use it for the computation */ - if (!(srv->proxy && srv->proxy->cap & PR_CAP_INT)) + if (!(srv->proxy->cap & PR_CAP_INT)) global.ssl_used_backend = 1; /* Initiate SSL context for current server */