]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: h1: Don't free the connection if it's an outgoing connection.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 6 Dec 2018 17:54:54 +0000 (18:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Dec 2018 18:00:21 +0000 (19:00 +0100)
In h1_process(), don't release the connection if it is an outgoing connection
and we don't have an h1s associated, if it is so it is probably just in
a pool.

src/mux_h1.c

index e1552346c98834b5856c441ad3ac4b9c3ac8443b..c3293409dcc0aac55364355579d3710dbea9af25 100644 (file)
@@ -1682,7 +1682,7 @@ static int h1_process(struct h1c * h1c)
                                goto release;
                }
                else
-                       goto release;
+                       goto end;
                h1s = h1c->h1s;
        }