diff options
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 3098215..8512752 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -243,8 +243,7 @@ vlan_clone_create(struct if_clone *ifc, int *unit) return (EEXIST); } - ifv = malloc(sizeof(struct ifvlan), M_VLAN, M_WAITOK); - memset(ifv, 0, sizeof(struct ifvlan)); + ifv = malloc(sizeof(struct ifvlan), M_VLAN, M_WAITOK | M_ZERO); ifp = &ifv->ifv_if; SLIST_INIT(&ifv->vlan_mc_listhead); |