Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netkey correct port number matching (src/dst mixup).
details: https://anonhg.NetBSD.org/src/rev/afaa77706415
branches: trunk
changeset: 487925:afaa77706415
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jun 15 05:50:22 2000 +0000
description:
correct port number matching (src/dst mixup).
diffstat:
sys/netkey/key.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 37125b24ea42 -r afaa77706415 sys/netkey/key.c
--- a/sys/netkey/key.c Thu Jun 15 05:01:06 2000 +0000
+++ b/sys/netkey/key.c Thu Jun 15 05:50:22 2000 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: key.c,v 1.20 2000/06/14 03:16:23 itojun Exp $ */
-/* $KAME: key.c,v 1.129 2000/06/14 02:51:50 itojun Exp $ */
+/* $NetBSD: key.c,v 1.21 2000/06/15 05:50:22 itojun Exp $ */
+/* $KAME: key.c,v 1.130 2000/06/15 05:46:06 sakane Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -3825,7 +3825,7 @@
switch (spidx0->dst.ss_family) {
case AF_INET:
- if (satosin(&spidx0->src)->sin_port != IPSEC_PORT_ANY
+ if (satosin(&spidx0->dst)->sin_port != IPSEC_PORT_ANY
&& satosin(&spidx0->dst)->sin_port !=
satosin(&spidx1->dst)->sin_port)
return 0;
@@ -3834,7 +3834,7 @@
return 0;
break;
case AF_INET6:
- if (satosin6(&spidx0->src)->sin6_port != IPSEC_PORT_ANY
+ if (satosin6(&spidx0->dst)->sin6_port != IPSEC_PORT_ANY
&& satosin6(&spidx0->dst)->sin6_port !=
satosin6(&spidx1->dst)->sin6_port)
return 0;
Home |
Main Index |
Thread Index |
Old Index