Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet don't intiialize m by m0, m0 is not initialized ...



details:   https://anonhg.NetBSD.org/src/rev/28f8cb75e264
branches:  trunk
changeset: 551001:28f8cb75e264
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Aug 27 02:09:59 2003 +0000

description:
don't intiialize m by m0, m0 is not initialized (by introduction of ip_fragment)

diffstat:

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

diffs (27 lines):

diff -r 09fd041d3c16 -r 28f8cb75e264 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Wed Aug 27 01:37:38 2003 +0000
+++ b/sys/netinet/ip_output.c   Wed Aug 27 02:09:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.118 2003/08/23 01:41:10 itojun Exp $   */
+/*     $NetBSD: ip_output.c,v 1.119 2003/08/27 02:09:59 itojun Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.118 2003/08/23 01:41:10 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.119 2003/08/27 02:09:59 itojun Exp $");
 
 #include "opt_pfil_hooks.h"
 #include "opt_ipsec.h"
@@ -804,7 +804,7 @@
        if (error == EMSGSIZE)
                goto bad;
 
-       for (m = m0; m; m = m0) {
+       for (; m; m = m0) {
                m0 = m->m_nextpkt;
                m->m_nextpkt = 0;
                if (error == 0) {



Home | Main Index | Thread Index | Old Index