summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_hostcache.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commitdd75d1d73b4f3034c1d9f621a49fff58b1d71eb1 (patch)
tree197ae73617ae75afe008897f6906b84835589ea2 /sys/netinet/in_hostcache.c
parented5dbfbd3cd619638a7baac288f548aa1398edac (diff)
downloadFreeBSD-src-dd75d1d73b4f3034c1d9f621a49fff58b1d71eb1.zip
FreeBSD-src-dd75d1d73b4f3034c1d9f621a49fff58b1d71eb1.tar.gz
Convert more malloc+bzero to malloc+M_ZERO.
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
Diffstat (limited to 'sys/netinet/in_hostcache.c')
-rw-r--r--sys/netinet/in_hostcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_hostcache.c b/sys/netinet/in_hostcache.c
index 33e0187..36a92fd 100644
--- a/sys/netinet/in_hostcache.c
+++ b/sys/netinet/in_hostcache.c
@@ -78,8 +78,8 @@ inhc_alloc(struct sockaddr_in *sin)
if (rt == 0)
return 0;
- MALLOC(inhc, struct in_hcentry *, sizeof *inhc, M_HOSTCACHE, M_WAITOK);
- bzero(inhc, sizeof *inhc);
+ MALLOC(inhc, struct in_hcentry *, sizeof *inhc, M_HOSTCACHE,
+ M_WAITOK | M_ZERO);
inhc->inhc_hc.hc_host = dup_sockaddr((struct sockaddr *)sin, 1);
if (in_broadcast(sin->sin_addr, rt->rt_ifp))
inhc->inhc_flags |= INHC_BROADCAST;
OpenPOWER on IntegriCloud