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:
Emeric Brun 2025-04-03 10:29:16 +02:00 committed by Willy Tarreau
parent 6365eb85e5
commit 00461fbfbf

View File

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