Willy,

please fill in the severity yourself, because I don't know what effects this
bug causes.

Check the issue for details:

https://github.com/haproxy/haproxy/issues/1015

Best regards
Tim Düsterhus

Apply with `git am --scissors` to automatically cut the commit message.

-- >8 --
This is a regression in 7838a79bac6ff2d81c9ff681d80644489511fa3f. The issue was
found using -Wmisleading-indentation. This patch fixes GitHub issue #1015.

This patch should be backported to 2.1+, the commit was first tagged in
v2.1-dev2.
---
 src/mux_h2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mux_h2.c b/src/mux_h2.c
index c712eb3c2..e4fb6c3f2 100644
--- a/src/mux_h2.c
+++ b/src/mux_h2.c
@@ -6160,9 +6160,10 @@ static size_t h2_snd_buf(struct conn_stream *cs, struct 
buffer *buf, size_t coun
        htx_to_buf(htx, buf);
 
        if (total > 0) {
-               if (!(h2s->h2c->wait_event.events & SUB_RETRY_SEND))
+               if (!(h2s->h2c->wait_event.events & SUB_RETRY_SEND)) {
                        TRACE_DEVEL("data queued, waking up h2c sender", 
H2_EV_H2S_SEND|H2_EV_H2C_SEND, h2s->h2c->conn, h2s);
                        tasklet_wakeup(h2s->h2c->wait_event.tasklet);
+               }
 
        }
        /* If we're waiting for flow control, and we got a shutr on the
-- 
2.29.0


Reply via email to