]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-h1: errflag must be set on H1S and not H1M during output processing
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 May 2019 08:35:18 +0000 (10:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Jun 2019 08:12:11 +0000 (10:12 +0200)
This bug is in an unexpected clause of the switch..case, inside
h1_process_output(). The wrong structure is used to set the error flag.

This patch must be backported to 1.9.

src/mux_h1.c

index 0b76ef4492c3e7391fe5a8cefe9e8e87fe924c74..ffec7e852b2317c9bc468cdc6862dd37ca7b0b7d 100644 (file)
@@ -1692,7 +1692,7 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
                                break;
 
                        default:
-                               h1m->flags |= errflag;
+                               h1s->flags |= errflag;
                                break;
                }
                total += vlen;