mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
BUG/MINOR: peers: fix expire learned from a peer not converted from ms to ticks
This is has now impact currently since MS_TO_TICKS macro does nothing but it will prevent further bugs.
This commit is contained in:
parent
6365eb85e5
commit
00461fbfbf
@ -1740,6 +1740,8 @@ static int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt,
|
||||
memcpy(&expire, *msg_cur, expire_sz);
|
||||
*msg_cur += expire_sz;
|
||||
expire = ntohl(expire);
|
||||
/* the rest of the code considers expire as ticks and not MS */
|
||||
expire = MS_TO_TICKS(expire);
|
||||
}
|
||||
|
||||
newts = stksess_new(table, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user