mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
bfdd: fix crash when receiving invalid echo packet
The log function would improperly format a string using an integer causing a crash. This situation was found when switching echo mode with a active connection. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
8529e18048
commit
9835f17d33
@ -186,8 +186,8 @@ static int ptm_bfd_process_echo_pkt(int s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!BFD_CHECK_FLAG(bfd->flags, BFD_SESS_FLAG_ECHO_ACTIVE)) {
|
if (!BFD_CHECK_FLAG(bfd->flags, BFD_SESS_FLAG_ECHO_ACTIVE)) {
|
||||||
log_debug("echo-packet: echo disabled [%s]", my_discr,
|
log_debug("echo-packet: echo disabled [%s] (id:%u)",
|
||||||
bs_to_string(bfd));
|
bs_to_string(bfd), my_discr);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user