From 17707b76db71757c1cf7effb27785f23ec388914 Mon Sep 17 00:00:00 2001 From: enami Date: Fri, 10 Nov 2000 02:27:19 +0000 Subject: [PATCH] Define struct member correctly. This fixes a panic due to overwrite of stack. --- sys/net/if_vlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index a625dcf35d07..df70e9afe829 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_vlan.c,v 1.17 2000/11/09 05:57:38 thorpej Exp $ */ +/* $NetBSD: if_vlan.c,v 1.18 2000/11/10 02:27:19 enami Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -652,7 +652,7 @@ vlan_ether_purgemulti(struct ifvlan *ifv) struct ifreq ifreq; struct { char ifr_name[IFNAMSIZ]; - struct sockaddr_storage; + struct sockaddr_storage ifr_ss; } ifreq_storage; } ifreq; struct ifreq *ifr = &ifreq.ifreq;