summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-23 07:39:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-23 07:39:03 +0000
commitb61c55cb5375d200c9265da3d637a192c9d0eb09 (patch)
treee928c207d5e190d37f968823442a430eee8354d2 /sys/net/if_vlan.c
parentebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff)
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c4
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);
}