From 74ade64b6fd0e02c1ccbc521a3ccba986c2063be Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 14 Jan 2019 14:39:18 +0100 Subject: fixes T1070 - SWANCTL: DMVPN: ALL peers are deleted in swan when opennhrp tries to delete ONE peer --- debian/patches/1004-vyos-terminate-connections-source-dest.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; + } -- cgit v1.2.3