mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 12:10:46 +00:00
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:
parent
a3ae932d34
commit
983eb31fd1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user