summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rarpd/rarpd.c2
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;
OpenPOWER on IntegriCloud