commit | 6e27be1a5dc7055c79a8dcc9ef64e606c1409b18 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 22 04:46:47 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 22 05:16:32 2018 +0200 |
tree | fabe20936f305c72881c93e216c7ac12235170b9 | |
parent | 5f6333cacaec613bf373d8747035c4fde0405270 [diff] |
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.