BUG/MEDIUM: http: don't store exp_replace() result in the trash's length
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 02:46:47 +0000 (04:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:16:32 +0000 (05:16 +0200)
commit6e27be1a5dc7055c79a8dcc9ef64e606c1409b18
treefabe20936f305c72881c93e216c7ac12235170b9
parent5f6333cacaec613bf373d8747035c4fde0405270
BUG/MEDIUM: http: don't store exp_replace() result in the trash's length

By convenience or laziness we used to store exp_replace()'s return code
into trash.data. The result checks applied there compare trash.data to -1
while it's now unsigned since commit 843b7cb ("MEDIUM: chunks: make the
chunk struct's fields match the buffer struct "). Let's clean this up
and test the result itself without storing it first.

No backport is needed.
src/proto_http.c