diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-01-08 10:37:22 -0200 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-01-08 10:37:22 -0200 |
| commit | 2d100aa5f12d1b5e09411fd27d0e3938cf4305db (patch) | |
| tree | 276394f4d44de100b700d50808555f43579b85c2 /zebra/kernel_socket.c | |
| parent | 75e710df7a21d980bba9e5b2260408a3b30d4145 (diff) | |
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>
Diffstat (limited to 'zebra/kernel_socket.c')
| -rw-r--r-- | zebra/kernel_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 29d2b1f45f..84b06e579f 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -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 */ 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"); } |
