]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: map: don't store exp_replace() result in the trash's length
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 02:55:43 +0000 (04:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:16:33 +0000 (05:16 +0200)
commit2842e05c7c9d9fb7e03f8900f778dc4fae4deb78
treee0fbd6f44b060f257aeb42804c16a5a525cf3425
parentf6ee9dc61654f541cd05861ba9a3685fc185b575
BUG/MEDIUM: map: 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 str->data. The result checks applied there compare str->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/map.c