On Fri, Jul 03, 2015 at 02:09:10PM +0200, KOVACS Krisztian wrote:
> Until now, the code assumed that it can get the offset to the first TLV
> header just by subtracting the length of the TLV part from the length of
> the complete buffer. However, if the buffer contains actual data after
> the header, this computation is flawed and leads to haproxy trying to
> parse TLV headers from the proxied data.
> 
> This change fixes this by making sure that the offset to the first TLV
> header is calculated based from the start of the buffer -- simply by
> adding the size of the proxy protocol v2 header plus the address
> family-dependent size of the address information block.

Applied to 1.6-dev, thank you Krisztian. It seems 1.5 doesn't need it
since it only affects code parsing namespaces.

willy


Reply via email to