diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-23 05:43:59 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-23 05:43:59 +0000 |
commit | d2f0c2e323a119da1b163f37f922e1edd5d2f84c (patch) | |
tree | ed392d9b51f7173c7597d59031e4272d1a233fd7 /usr.sbin/rarpd | |
parent | d1f853054e7fb128e938df4b29932ab9723a522f (diff) | |
download | FreeBSD-src-d2f0c2e323a119da1b163f37f922e1edd5d2f84c.zip FreeBSD-src-d2f0c2e323a119da1b163f37f922e1edd5d2f84c.tar.gz |
MFC r300002
When clearing rtmsg, pass &rtmsg to bzero() instead of the address of
just the header
Reported by: Coverity
CID: 1007568, 1194256
Diffstat (limited to 'usr.sbin/rarpd')
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index 74f7940..2bb333c 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; |