commit | 2842e05c7c9d9fb7e03f8900f778dc4fae4deb78 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 22 04:55:43 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 22 05:16:33 2018 +0200 |
tree | e0fbd6f44b060f257aeb42804c16a5a525cf3425 | |
parent | f6ee9dc61654f541cd05861ba9a3685fc185b575 [diff] |
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.