From: Olivier Houchard Date: Wed, 25 Mar 2020 16:05:21 +0000 (+0100) Subject: MINOR: build: Fix build in mux_h1 X-Git-Tag: v2.2-dev6~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3500c3ccd2e5636fbf53a3ece36fa686fa4efef;p=thirdparty%2Fhaproxy.git MINOR: build: Fix build in mux_h1 We want to check if the input buffer contains data, not the connection. This should unbreak the build. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index c1eefe2b8c..7eaf8ccae6 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -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);