]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-h1: Don't test h1c in h1_shutw_conn()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Nov 2022 07:44:44 +0000 (08:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Nov 2022 07:44:46 +0000 (08:44 +0100)
The H1 connection cannot be NULL when h1_shutw_conn() is called. Thus there
is no reason to test it.

This patch should fix the issue #1936.

src/mux_h1.c

index 1ab6758acf6494ba80cd00e90727cc72abb177f3..9eca08c33769dc8751a9876164c78ae68b5961e8 100644 (file)
@@ -3538,7 +3538,7 @@ static void h1_shutw_conn(struct connection *conn)
                return;
 
        conn_xprt_shutw(conn);
-       conn_sock_shutw(conn, (h1c && !(h1c->flags & H1C_F_SILENT_SHUT)));
+       conn_sock_shutw(conn, !(h1c->flags & H1C_F_SILENT_SHUT));
        TRACE_LEAVE(H1_EV_H1C_END, conn);
 }