mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue