]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: remove check on srv->proxy
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 14 Dec 2022 09:34:36 +0000 (10:34 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 14 Dec 2022 09:36:31 +0000 (10:36 +0100)
Remove a useless check on srv->proxy which triggers coverity.

Should fix issue #1965.

src/ssl_sock.c

index cbc1eb94b42a1bb3418847afd45c6e0f6c34b440..a36616289c58370837444421514405fab577b391 100644 (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 */