Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/net Pullup rev 1.40 (requested by aymeric in ticket...



details:   https://anonhg.NetBSD.org/src/rev/6b1089335a98
branches:  netbsd-1-6
changeset: 530174:6b1089335a98
user:      jmc <jmc%NetBSD.org@localhost>
date:      Tue Mar 04 05:49:44 2003 +0000

description:
Pullup rev 1.40 (requested by aymeric in ticket #1187)
 When looking up a Host-Uniq tag, do not consider NULL as a valid
 (struct pppoe_softc *). Although we do not generate such tags,
 other hosts could and some actually do.

diffstat:

 sys/net/if_pppoe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a5a7db94d7d3 -r 6b1089335a98 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Tue Mar 04 04:54:46 2003 +0000
+++ b/sys/net/if_pppoe.c        Tue Mar 04 05:49:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.24.4.14 2003/02/07 20:19:11 tron Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.24.4.15 2003/03/04 05:49:44 jmc Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.24.4.14 2003/02/07 20:19:11 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.24.4.15 2003/03/04 05:49:44 jmc Exp $");
 
 #include "pppoe.h"
 #include "bpfilter.h"
@@ -314,7 +314,7 @@
        LIST_FOREACH(sc, &pppoe_softc_list, sc_list)
                if (sc == t) break;
 
-       if (sc != t) {
+       if (sc == NULL) {
 #ifdef PPPOE_DEBUG
                printf("pppoe: alien host unique tag, no session found\n");
 #endif



Home | Main Index | Thread Index | Old Index