]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Report a processing error during output processing
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 9 Sep 2019 08:11:30 +0000 (10:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Sep 2019 08:18:54 +0000 (10:18 +0200)
During output processing, It is unexpected to have a malformed HTX
message. Instead of reporting a parsing error, we now report a processing error.

src/mux_h1.c

index 1fc65039f8f5bd2c3617909968cdfe64b1e6051e..d1022e699033f58cb77dd4ea8ab7322922508139 100644 (file)
@@ -1830,7 +1830,7 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
                        default:
                          error:
                                /* Unexpected error during output processing */
-                               chn_htx->flags |= HTX_FL_PARSING_ERROR;
+                               chn_htx->flags |= HTX_FL_PROCESSING_ERROR;
                                h1s->flags |= errflag;
                                h1c->flags |= H1C_F_CS_ERROR;
                                break;