]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: proto_uxst: do not set unused flag
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Sep 2021 09:56:25 +0000 (11:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Sep 2021 09:59:15 +0000 (11:59 +0200)
Similarly to previous patch for sockpair, UNIX sockets set the
CONNECT_HAS_DATA flag without using it later, we can drop it.

src/proto_uxst.c

index efa7af9510f4be84c4fcb040aa84db9db723b9b2..dfc52b137e79782e44898c51dc51bdc7d567994a 100644 (file)
@@ -285,10 +285,6 @@ static int uxst_connect_server(struct connection *conn, int flags)
                return SF_ERR_INTERNAL;
        }
 
-       /* if a send_proxy is there, there are data */
-       if (conn->send_proxy_ofs)
-               flags |= CONNECT_HAS_DATA;
-
        if (global.tune.server_sndbuf)
                 setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &global.tune.server_sndbuf, sizeof(global.tune.server_sndbuf));