From: Willy Tarreau Date: Fri, 7 Dec 2018 16:12:22 +0000 (+0100) Subject: BUG/MEDIUM: htx: fix typo in htx_replace_stline() making it fail all the time X-Git-Tag: v1.9-dev10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c706cd73a553e8ccab9117b32e5e87aa8d2ee4a4;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: htx: fix typo in htx_replace_stline() making it fail all the time A typo in the block type check makes this function fail all the time, which has impact on anything rewriting a start line (set-uri, set-path etc). No backport needed. --- diff --git a/src/htx.c b/src/htx.c index 2c660e79b1..cd16bf3a1b 100644 --- a/src/htx.c +++ b/src/htx.c @@ -602,7 +602,7 @@ struct htx_sl *htx_replace_stline(struct htx *htx, struct htx_blk *blk, const st uint32_t size; type = htx_get_blk_type(blk); - if (type != HTX_BLK_REQ_SL || HTX_BLK_RES_SL) + if (type != HTX_BLK_REQ_SL && type != HTX_BLK_RES_SL) return NULL; /* Save start-line info and flags */