BUG/MINOR: chunks: do not store -1 into chunk_printf() in case of error
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:14:37 +0000 (05:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Aug 2018 03:16:31 +0000 (05:16 +0200)
commit5f6333cacaec613bf373d8747035c4fde0405270
treefd9070daf5d64605e6e4478b182391109cd3d518
parent49725a0977d229d062f02705cfeafbb3ccd93954
BUG/MINOR: chunks: do not store -1 into chunk_printf() in case of error

Since commit 843b7cb ("MEDIUM: chunks: make the chunk struct's fields
match the buffer struct") a chunk length is unsigned so we can't reliably
store -1 and check for negative values in the caller. Only one such
location was found in proto_http's http-request auth rules (which cannot
realistically fail).

No backport is needed.
src/chunk.c
src/proto_http.c