mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
bgpd: fix incorrect keepalive timer evaluation
Incorrect check for sentinel value effectively caused peers to sometimes use the keepalive timer value of other peers, which sometimes led to hold timer expiry. Signed-off-by: Quentin Young <qlyoung@qlyoung.net>
This commit is contained in:
parent
4298f5e937
commit
2ccf91b108
@ -119,7 +119,7 @@ static void peer_process(struct hash_backet *hb, void *arg)
|
||||
}
|
||||
|
||||
/* if calculated next update for this peer < current delay, use it */
|
||||
if (next_update->tv_sec <= 0 || timercmp(&diff, next_update, <))
|
||||
if (next_update->tv_sec < 0 || timercmp(&diff, next_update, <))
|
||||
*next_update = diff;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user