Brain'o in last. Pointed out by Steve Woodford <scw@netbsd.org>.

This commit is contained in:
thorpej 2001-05-19 14:20:40 +00:00
parent 3d863329cc
commit 937cea769e
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_cksum.c,v 1.10 2001/05/19 00:30:35 thorpej Exp $ */ /* $NetBSD: in_cksum.c,v 1.11 2001/05/19 14:21:13 thorpej Exp $ */
/* /*
* Copyright (c) 1988, 1992, 1993 * Copyright (c) 1988, 1992, 1993
@ -39,7 +39,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: in_cksum.c,v 1.10 2001/05/19 00:30:35 thorpej Exp $"); __KERNEL_RCSID(0, "$NetBSD: in_cksum.c,v 1.11 2001/05/19 14:21:13 thorpej Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/mbuf.h> #include <sys/mbuf.h>
@ -211,7 +211,7 @@ in4_cksum(struct mbuf *m, u_int8_t nxt, int off, int len)
union l_util l_util; union l_util l_util;
struct ipovly ipov; struct ipovly ipov;
if (nxt == 0) { if (nxt != 0) {
/* pseudo header */ /* pseudo header */
if (off < sizeof(struct ipovly)) if (off < sizeof(struct ipovly))
panic("in4_cksum: offset too short"); panic("in4_cksum: offset too short");

View File

@ -1,4 +1,4 @@
/* $NetBSD: in4_cksum.c,v 1.5 2001/05/19 00:13:53 thorpej Exp $ */ /* $NetBSD: in4_cksum.c,v 1.6 2001/05/19 14:20:40 thorpej Exp $ */
/* /*
* Copyright (C) 1999 WIDE Project. * Copyright (C) 1999 WIDE Project.
@ -109,7 +109,7 @@ in4_cksum(m, nxt, off, len)
u_int32_t l; u_int32_t l;
} l_util; } l_util;
if (nxt == 0) { if (nxt != 0) {
/* pseudo header */ /* pseudo header */
if (off < sizeof(struct ipovly)) if (off < sizeof(struct ipovly))
panic("in4_cksum: offset too short"); panic("in4_cksum: offset too short");