summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-01-14 14:39:18 +0100
committerKim Hagen <kim.sidney@gmail.com>2019-01-14 14:39:18 +0100
commit74ade64b6fd0e02c1ccbc521a3ccba986c2063be (patch)
treed54ebf7d02abf565c1ed2d8727ece87e1680e06b
parentd1681303201c3516d5d8d1cda277bd43f39cae78 (diff)
downloadvyos-strongswan-74ade64b6fd0e02c1ccbc521a3ccba986c2063be.tar.gz
vyos-strongswan-74ade64b6fd0e02c1ccbc521a3ccba986c2063be.zip
fixes T1070 - SWANCTL: DMVPN: ALL peers are deleted in swan when opennhrp tries to delete ONE peer
-rw-r--r--debian/patches/1004-vyos-terminate-connections-source-dest.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/patches/1004-vyos-terminate-connections-source-dest.patch b/debian/patches/1004-vyos-terminate-connections-source-dest.patch
index a04ca7b9f..a967633a6 100644
--- a/debian/patches/1004-vyos-terminate-connections-source-dest.patch
+++ b/debian/patches/1004-vyos-terminate-connections-source-dest.patch
@@ -48,7 +48,7 @@ diff -ru a/src/libcharon/plugins/vici/vici_control.c b/src/libcharon/plugins/vic
}
+ else if (my_host && other_host)
+ {
-+ if (my_host && !streq(my_host, ike_sa->get_my_host(ike_sa)) && other_host && !streq(other_host, ike_sa->get_other_host(ike_sa)))
++ if (!my_host->ip_equals(my_host, ike_sa->get_my_host(ike_sa)) || !other_host->ip_equals(other_host, ike_sa->get_other_host(ike_sa)))
+ {
+ continue;
+ }