]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: buffers: fix unsafe use of buffer_ignore at some places
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Mar 2012 14:03:30 +0000 (15:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:14 +0000 (12:28 +0200)
commitec1bc82a1d435923d18dae8a005b876900c91be9
treed9de6e6d70464a1d66689b9e67874516f85541f1
parent8b1323e4cb2c0a53c0d53fc3cded511ffec4146e
MEDIUM: buffers: fix unsafe use of buffer_ignore at some places

buffer_ignore may only be used when the output of a buffer is empty,
but it's not granted it is always the case when sending HTTP error
responses. Better use buffer_cut_tail() instead, and use buffer_ignore
only on non-wrapping data.
include/proto/buffers.h
src/proto_http.c