Module Name: src Committed By: riz Date: Fri Feb 8 19:54:46 UTC 2013
Modified Files: src/sys/dist/ipf/netinet [netbsd-6]: ip_fil_netbsd.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #787): sys/dist/ipf/netinet/ip_fil_netbsd.c: revision 1.4 Fix off-by-one read error. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.61.2.1 src/sys/dist/ipf/netinet/ip_fil_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dist/ipf/netinet/ip_fil_netbsd.c diff -u src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.61 src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.61.2.1 --- src/sys/dist/ipf/netinet/ip_fil_netbsd.c:1.61 Wed Feb 15 17:55:22 2012 +++ src/sys/dist/ipf/netinet/ip_fil_netbsd.c Fri Feb 8 19:54:45 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_fil_netbsd.c,v 1.61 2012/02/15 17:55:22 riz Exp $ */ +/* $NetBSD: ip_fil_netbsd.c,v 1.61.2.1 2013/02/08 19:54:45 riz Exp $ */ /* * Copyright (C) 1993-2003 by Darren Reed. @@ -8,7 +8,7 @@ #if !defined(lint) #if defined(__NetBSD__) #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.61 2012/02/15 17:55:22 riz Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_fil_netbsd.c,v 1.61.2.1 2013/02/08 19:54:45 riz Exp $"); #else static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed"; static const char rcsid[] = "@(#)Id: ip_fil_netbsd.c,v 2.55.2.67 2009/12/19 05:41:08 darrenr Exp"; @@ -1040,7 +1040,7 @@ fr_send_icmp_err(int type, fr_info_t *fi code = fin->fin_icode; #ifdef USE_INET6 - if ((code < 0) || (code > sizeof(icmptoicmp6unreach)/sizeof(int))) + if ((code < 0) || (code >= sizeof(icmptoicmp6unreach)/sizeof(int))) return -1; #endif