Source-Changes-HG archive

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

[src/netbsd-6-0]: src/sys/dist/ipf/netinet Pull up following revision(s) (req...



details:   https://anonhg.NetBSD.org/src/rev/b1e2d88fbdb6
branches:  netbsd-6-0
changeset: 774750:b1e2d88fbdb6
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Feb 08 19:55:11 2013 +0000

description:
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.

diffstat:

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

diffs (27 lines):

diff -r 0cd265676f62 -r b1e2d88fbdb6 sys/dist/ipf/netinet/ip_fil_netbsd.c
--- a/sys/dist/ipf/netinet/ip_fil_netbsd.c      Fri Feb 08 19:32:00 2013 +0000
+++ b/sys/dist/ipf/netinet/ip_fil_netbsd.c      Fri Feb 08 19:55:11 2013 +0000
@@ -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.6.1 2013/02/08 19:55:11 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.6.1 2013/02/08 19:55:11 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 @@
 
        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
 



Home | Main Index | Thread Index | Old Index