Source-Changes-HG archive

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

[src/trunk]: src/sys/netkey fixed a unexpected addr/port matching failure in ...



details:   https://anonhg.NetBSD.org/src/rev/17c3920b2dfb
branches:  trunk
changeset: 572722:17c3920b2dfb
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jan 11 01:30:17 2005 +0000

description:
fixed a unexpected addr/port matching failure in SA management
FreeBSD-PR: kern/72393

diffstat:

 sys/netkey/key.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b41d028022b4 -r 17c3920b2dfb sys/netkey/key.c
--- a/sys/netkey/key.c  Tue Jan 11 01:05:32 2005 +0000
+++ b/sys/netkey/key.c  Tue Jan 11 01:30:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.126 2004/12/06 08:07:28 itojun Exp $ */
+/*     $NetBSD: key.c,v 1.127 2005/01/11 01:30:17 itojun Exp $ */
 /*     $KAME: key.c,v 1.310 2003/09/08 02:23:44 itojun Exp $   */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.126 2004/12/06 08:07:28 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.127 2005/01/11 01:30:17 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -4275,6 +4275,7 @@
                    satosin6(sa1)->sin6_port != satosin6(sa2)->sin6_port) {
                        return 1;
                }
+               break;
        default:
                if (bcmp(sa1, sa2, sa1->sa_len) != 0)
                        return 1;



Home | Main Index | Thread Index | Old Index