diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
commit | b61c55cb5375d200c9265da3d637a192c9d0eb09 (patch) | |
tree | e928c207d5e190d37f968823442a430eee8354d2 /sys/net/if_vlan.c | |
parent | ebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff) |
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 46be6d779c4..e4188c22b43 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.109 2014/10/07 11:16:23 dlg Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.110 2014/11/23 07:39:02 deraadt Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -164,7 +164,7 @@ vlan_clone_destroy(struct ifnet *ifp) vlan_unconfig(ifp, NULL); ether_ifdetach(ifp); if_detach(ifp); - free(ifv, M_DEVBUF, 0); + free(ifv, M_DEVBUF, sizeof(*ifv)); return (0); } |