summaryrefslogtreecommitdiff
path: root/security/racoon/patches
diff options
context:
space:
mode:
authoritojun <itojun>2002-04-15 02:00:03 +0000
committeritojun <itojun>2002-04-15 02:00:03 +0000
commit9267907d165a7fe64b84ab3cb5046a80ba7aaa4d (patch)
tree68d10dd1feac5eaf5c255264db8dc6c6876595f4 /security/racoon/patches
parent06aa0f069a5be15e1d9fa56fcf699cbe7bd664c9 (diff)
downloadpkgsrc-9267907d165a7fe64b84ab3cb5046a80ba7aaa4d.tar.gz
correct initial contact handling. PR 15949
Diffstat (limited to 'security/racoon/patches')
-rw-r--r--security/racoon/patches/patch-ag34
1 files changed, 34 insertions, 0 deletions
diff --git a/security/racoon/patches/patch-ag b/security/racoon/patches/patch-ag
new file mode 100644
index 00000000000..efd8dd91dbb
--- /dev/null
+++ b/security/racoon/patches/patch-ag
@@ -0,0 +1,34 @@
+$NetBSD: patch-ag,v 1.1 2002/04/15 02:00:04 itojun Exp $
+
+--- isakmp_inf.c.orig Tue Dec 11 13:39:32 2001
++++ isakmp_inf.c Mon Apr 15 10:57:48 2002
+@@ -1058,10 +1058,13 @@
+ * racoon only deletes SA which is matched both the
+ * source address and the destination accress.
+ */
+- if ((cmpsaddrwop(iph1->local, src)
+- && cmpsaddrwop(iph1->remote, dst))
+- || (cmpsaddrwop(iph1->remote, src)
+- && cmpsaddrwop(iph1->local, dst))) {
++ if (cmpsaddrwop(iph1->local, src) == 0 &&
++ cmpsaddrwop(iph1->remote, dst) == 0)
++ ;
++ else if (cmpsaddrwop(iph1->remote, src) == 0 &&
++ cmpsaddrwop(iph1->local, dst) == 0)
++ ;
++ else {
+ msg = next;
+ continue;
+ }
+@@ -1076,8 +1079,10 @@
+ msg->sadb_msg_satype)
+ break;
+ }
+- if (i == pfkey_nsatypes)
++ if (i == pfkey_nsatypes) {
++ msg = next;
+ continue;
++ }
+
+ plog(LLV_INFO, LOCATION, NULL,
+ "purging spi=%u.\n", ntohl(sa->sadb_sa_spi));