mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-19 06:34:17 +00:00
zebra: fix another FreeBSD warning message
When an empty netmask a wrong end size is calculated, lets handle this corner case to avoid spurious warning messages. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
75e710df7a
commit
2d100aa5f1
@ -769,7 +769,7 @@ static void ifam_read_mesg(struct ifa_msghdr *ifm, union sockunion *addr,
|
|||||||
|
|
||||||
/* Assert read up end point matches to end point */
|
/* Assert read up end point matches to end point */
|
||||||
pnt = (caddr_t)ROUNDUP((size_t)pnt);
|
pnt = (caddr_t)ROUNDUP((size_t)pnt);
|
||||||
if (pnt != end)
|
if (pnt != (caddr_t)ROUNDUP((size_t)end))
|
||||||
zlog_debug("ifam_read() doesn't read all socket data");
|
zlog_debug("ifam_read() doesn't read all socket data");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user