Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix loop condition.



details:   https://anonhg.NetBSD.org/src/rev/07f28ae9c190
branches:  trunk
changeset: 533148:07f28ae9c190
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Jun 22 16:56:11 2002 +0000

description:
fix loop condition.
(don't skip last tag)

diffstat:

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

diffs (27 lines):

diff -r 6cfa9e6688c0 -r 07f28ae9c190 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Sat Jun 22 14:42:07 2002 +0000
+++ b/sys/net/if_pppoe.c        Sat Jun 22 16:56:11 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.30 2002/06/22 11:46:16 itojun Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.31 2002/06/22 16:56:11 yamt 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.30 2002/06/22 11:46:16 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.31 2002/06/22 16:56:11 yamt Exp $");
 
 #include "pppoe.h"
 #include "bpfilter.h"
@@ -430,7 +430,7 @@
        tag = 0;
        len = 0;
        sc = NULL;
-       while (off + sizeof(*pt) < m->m_pkthdr.len) {
+       while (off + sizeof(*pt) <= m->m_pkthdr.len) {
                n = m_pulldown(m, off, sizeof(*pt), &noff);
                if (!n) {
                        printf("%s: parse error\n",



Home | Main Index | Thread Index | Old Index