BUG/MINOR: buffers: Fix b_slow_realign when a buffer is realign without output
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Aug 2018 13:43:12 +0000 (15:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Aug 2018 13:56:40 +0000 (15:56 +0200)
commitad4e1a4735a58878d0a50125b60eb801903f7be1
treed96cf031d8f4b3ef0d4d62d02dcf9ed5a3bec443
parent65e94d1ce96533bad5e0ebdb60c372576f2f7adf
BUG/MINOR: buffers: Fix b_slow_realign when a buffer is realign without output

When b_slow_realign is called with the <output> parameter equal to 0, the
buffer's head, after the realign, must be set to 0. It was errornously set to
the buffer's size, because there was no test on the value of <output>.
include/common/buf.h