summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index bc1e2c6..c7047a7 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -147,8 +147,7 @@ tuncreate(dev)
dev = make_dev(&tun_cdevsw, minor(dev),
UID_UUCP, GID_DIALER, 0600, "tun%d", dev2unit(dev));
- MALLOC(sc, struct tun_softc *, sizeof(*sc), M_TUN, M_WAITOK);
- bzero(sc, sizeof *sc);
+ MALLOC(sc, struct tun_softc *, sizeof(*sc), M_TUN, M_WAITOK | M_ZERO);
sc->tun_flags = TUN_INITED;
ifp = &sc->tun_if;
OpenPOWER on IntegriCloud