]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: htx/cache: use the correct class of error codes on abort
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 23:35:15 +0000 (00:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 23:40:30 +0000 (00:40 +0100)
commit273e964f6e5d5f62f7e556a61b153d4f739394f0
tree454193226ec5561adae8cf35f9e58fdb01f554c3
parent746fb772f16ebb0a1832aa4a548f99d4da180f24
BUG/MEDIUM: htx/cache: use the correct class of error codes on abort

The HTX-specific cache code uses HTX_CACHE_* states which overlap with
the legacy HTTP states. A typo in the error handling made the state
become HTTP_CACHE_END, which equals 3 and is the value for HTX_CACHE_EOD,
which explains why we were seeing a transition to trailers and memory
corruption.

no backport needed.
src/cache.c