]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: build: Fix build in mux_h1
authorOlivier Houchard <cognet@ci0.org>
Wed, 25 Mar 2020 16:05:21 +0000 (17:05 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 25 Mar 2020 16:06:16 +0000 (17:06 +0100)
We want to check if the input buffer contains data, not the connection.
This should unbreak the build.

src/mux_h1.c

index c1eefe2b8c0aa30aab38e45e372a7ce54c713852..7eaf8ccae6b568976dab90285195dc192d957bea 100644 (file)
@@ -2492,7 +2492,7 @@ static void h1_detach(struct conn_stream *cs)
        }
        else {
                /* If we have a new request, process it immediately */
-               if (unlikely(b_data(&h1c->conn)))
+               if (unlikely(b_data(&h1c->ibuf)))
                        h1_process(h1c);
                else
                        h1c->conn->xprt->subscribe(h1c->conn, h1c->conn->xprt_ctx, SUB_RETRY_RECV, &h1c->wait_event);