Source-Changes-HG archive

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

[src/trunk]: src/sys/netkey don't permit port spec on tunnel mode policy. sy...



details:   https://anonhg.NetBSD.org/src/rev/4a65d2013917
branches:  trunk
changeset: 540279:4a65d2013917
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Dec 09 03:20:45 2002 +0000

description:
don't permit port spec on tunnel mode policy.  sync w/kame.

diffstat:

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

diffs (27 lines):

diff -r 90159cb712a2 -r 4a65d2013917 sys/netkey/key.c
--- a/sys/netkey/key.c  Mon Dec 09 03:13:41 2002 +0000
+++ b/sys/netkey/key.c  Mon Dec 09 03:20:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.80 2002/11/02 07:32:08 perry Exp $   */
+/*     $NetBSD: key.c,v 1.81 2002/12/09 03:20:45 itojun Exp $  */
 /*     $KAME: key.c,v 1.249 2002/06/14 14:46:22 itojun Exp $   */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.80 2002/11/02 07:32:08 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.81 2002/12/09 03:20:45 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -1534,7 +1534,7 @@
                        default:
                                break;
                        }
-                       sa = (struct sockaddr *)(src0 + 1);
+                       sa = (struct sockaddr *)(dst0 + 1);
                        switch (sa->sa_family) {
                        case AF_INET:
                                if (((struct sockaddr_in *)sa)->sin_port) {



Home | Main Index | Thread Index | Old Index