diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-05 06:32:35 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-05 06:32:35 +0000 |
commit | dd5316d50a586ee27da234ea545d4203df184c0f (patch) | |
tree | 19f642b15053b5b95a35bf25767e8394e7b7db0c /sys/net/if_vlan.c | |
parent | 4791a82f5c8bd65a48483ef5148b356aaa142c80 (diff) |
Fix bug in if_vlan which could cause crashes in timeouts and 'ifconfig -a'
ok niklas@
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 fcee71efe62..9efc6a4a437 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.27 2001/10/01 09:27:31 niklas Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.28 2001/10/05 06:32:34 drahn Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -152,7 +152,7 @@ vlanattach(int count) if (ifv_softc == NULL) panic("vlanattach: MALLOC failed"); nifvlan = count; - bzero(ifv_softc, nifvlan * sizeof(ifv_softc)); + bzero(ifv_softc, nifvlan * sizeof(struct ifvlan)); for (i = 0; i < nifvlan; i++) { ifp = &ifv_softc[i].ifv_if; |