mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
zebra: Fix zebra to exit on recvmsg buffer overrun
When zebra receives a recvmsg buffer from the kernel silently exit so that watchquagga will notice and then restart zebra. Ticket: CM-11130 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
116bd4e9ff
commit
99d8325e9a
@ -327,6 +327,12 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *,
|
||||
break;
|
||||
zlog (NULL, LOG_ERR, "%s recvmsg overrun: %s",
|
||||
nl->name, safe_strerror(errno));
|
||||
/*
|
||||
* In this case we are screwed.
|
||||
* There is no good way to
|
||||
* recover zebra at this point.
|
||||
*/
|
||||
exit (-1);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user