commit | 9c768fdca19b292c17099928e1efdf40bf53fc6e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 22 05:08:57 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 22 05:16:32 2018 +0200 |
tree | 62f2e6db384d5aab8b5f8803e54ab38c93f04d16 | |
parent | 6e27be1a5dc7055c79a8dcc9ef64e606c1409b18 [diff] |
BUG/MEDIUM: http: don't store url_decode() result in the samples's length By convenience or laziness we used to store url_decode()'s return code into smp->data.u.str.data. The result checks applied there compare it to 0 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.