CLEANUP: ssl: remove check on srv->proxy

Remove a useless check on srv->proxy which triggers coverity.

Should fix issue #1965.
This commit is contained in:
William Lallemand 2022-12-14 10:34:36 +01:00
parent 02cf4ecb5a
commit 04007cb08d

View File

@ -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 */