From 78db15ccf73d2a696ac2312615c4bad874a194d5 Mon Sep 17 00:00:00 2001 From: Don Lewis Date: Tue, 17 May 2016 04:03:45 +0000 Subject: [PATCH] When clearing rtmsg, pass &rtmsg to bzero() instead of the address of just the header Reported by: Coverity CID: 1007568, 1194256 MFC after: 1 week --- usr.sbin/rarpd/rarpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 74f7940058e6..2bb333c553c8 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -739,7 +739,7 @@ update_arptab(u_char *ep, in_addr_t ipaddr) /* Get the type and interface index */ rt = &rtmsg.rthdr; - bzero(rt, sizeof(rtmsg)); + bzero(&rtmsg, sizeof(rtmsg)); rt->rtm_version = RTM_VERSION; rt->rtm_addrs = RTA_DST; rt->rtm_type = RTM_GET;