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.
This commit is contained in:
Willy Tarreau 2013-12-28 19:16:26 +01:00
parent a3ae932d34
commit 983eb31fd1

View File

@ -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;