From: Willy Tarreau Date: Sat, 28 Dec 2013 18:16:26 +0000 (+0100) Subject: BUG/MINOR: channel: CHN_INFINITE_FORWARD must be unsigned X-Git-Tag: v1.5-dev22~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983eb31fd197abc3082f0d3691059adae595d534;p=thirdparty%2Fhaproxy.git BUG/MINOR: channel: CHN_INFINITE_FORWARD must be unsigned This value is stored as unsigned in chn->to_forward. Having it defined as signed makes it impossible to pass channel_forward() a previously saved value because the argument will be zero-extended during the conversion to long long, while the test will be performed using sign extension. There is no impact on existing code right now. --- diff --git a/include/types/channel.h b/include/types/channel.h index 42160af6a0..7f524c1f31 100644 --- a/include/types/channel.h +++ b/include/types/channel.h @@ -164,7 +164,7 @@ /* Magic value to forward infinite size (TCP, ...), used with ->to_forward */ -#define CHN_INFINITE_FORWARD MAX_RANGE(int) +#define CHN_INFINITE_FORWARD MAX_RANGE(unsigned int) /* needed for a declaration below */ struct session;