BUG/MEDIUM: peers: prevent learning expiration too far in futur from unsync node
authorEmeric Brun <ebrun@haproxy.com>
Thu, 3 Apr 2025 08:32:30 +0000 (10:32 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 3 Apr 2025 17:22:50 +0000 (19:22 +0200)
commit3102900c7ee5af70543b841f15a4710b37a2a734
tree8d31fe70969fd2c7a01b26c763cbdbf293294087
parent03286159ae176d3089443f84d70ad5c4baaa9a5d
BUG/MEDIUM: peers: prevent learning expiration too far in futur from unsync node

This patch sets the expire of the entry to the max value in
configuration if the value showed in the peer update message
is too far in futur.

This should be backported an all supported branches.

(cherry picked from commit b02b8453d15dfe2c45d132484e381c27f63d2fb1)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
(cherry picked from commit 7dfb6efbaf8c17a82be38208dc1e8ce693d21b74)
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
src/peers.c