Source-Changes-HG archive

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

[src/trunk]: src/sys/net when looking up a Host-Uniq tag, do not consider NUL...



details:   https://anonhg.NetBSD.org/src/rev/1df6c2842790
branches:  trunk
changeset: 543646:1df6c2842790
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Sat Mar 01 15:10:13 2003 +0000

description:
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 b8eca5d367be -r 1df6c2842790 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Sat Mar 01 13:25:25 2003 +0000
+++ b/sys/net/if_pppoe.c        Sat Mar 01 15:10:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.39 2003/02/04 20:52:23 martin Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.40 2003/03/01 15:10:13 aymeric 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.39 2003/02/04 20:52:23 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.40 2003/03/01 15:10:13 aymeric 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