Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Define struct member correctly. This fixes a panic ...



details:   https://anonhg.NetBSD.org/src/rev/28003ac1fea9
branches:  trunk
changeset: 499058:28003ac1fea9
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Nov 10 02:27:19 2000 +0000

description:
Define struct member correctly.  This fixes a panic due to overwrite of stack.

diffstat:

 sys/net/if_vlan.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 328cf7c6333b -r 28003ac1fea9 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Fri Nov 10 02:00:09 2000 +0000
+++ b/sys/net/if_vlan.c Fri Nov 10 02:27:19 2000 +0000
@@ -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 @@
                struct ifreq ifreq;
                struct {
                        char ifr_name[IFNAMSIZ];
-                       struct sockaddr_storage;
+                       struct sockaddr_storage ifr_ss;
                } ifreq_storage;
        } ifreq;
        struct ifreq *ifr = &ifreq.ifreq;



Home | Main Index | Thread Index | Old Index