]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: don't store url_decode() result in the samples's length
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:08:57 +0000 (05:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:16:32 +0000 (05:16 +0200)
commit9c768fdca19b292c17099928e1efdf40bf53fc6e
tree62f2e6db384d5aab8b5f8803e54ab38c93f04d16
parent6e27be1a5dc7055c79a8dcc9ef64e606c1409b18
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.
src/proto_http.c