diff options
author | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
commit | 7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch) | |
tree | c383ffd6da8fbab2789828310191f8717f675124 /sys/net/if_ef.c | |
parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) |
Notes
Diffstat (limited to 'sys/net/if_ef.c')
-rw-r--r-- | sys/net/if_ef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c index f8e38caad1dd0..4554a293afd8b 100644 --- a/sys/net/if_ef.c +++ b/sys/net/if_ef.c @@ -492,10 +492,10 @@ ef_clone(struct ef_link *efl, int ft) char cbuf[IFNAMSIZ], *ifname; int ifnlen; - efp = (struct efnet*)malloc(sizeof(struct efnet), M_IFADDR, M_WAITOK); + efp = (struct efnet*)malloc(sizeof(struct efnet), M_IFADDR, + M_WAITOK | M_ZERO); if (efp == NULL) return ENOMEM; - bzero(efp, sizeof(*efp)); efp->ef_ifp = ifp; eifp = &efp->ef_ac.ac_if; ifnlen = 1 + snprintf(cbuf, sizeof(cbuf), "%s%df", ifp->if_name, |