]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: buffers: don't return a negative value on buffer_total_space_res()
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Nov 2011 12:40:49 +0000 (13:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Nov 2011 20:00:46 +0000 (21:00 +0100)
commitfe4b1f9dc03f1c62dd9d45f18d99cf9d9919e11f
tree998e7442559addc1ce64be5fcf28a01867815227
parent4b517ca93aaaead8aa6143aa2836dc96417653c6
BUG: buffers: don't return a negative value on buffer_total_space_res()

In commit 4b517ca93aaaead8aa6143aa2836dc96417653c6 (MEDIUM: buffers:
add some new primitives and rework existing ones), we forgot to check
if buffer_max_len() < l.

No backport is needed.
include/proto/buffers.h