aboutsummaryrefslogtreecommitdiffstats
path: root/src/libipsec/ipsec_policy_mgr.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-02-04 10:57:31 +0100
committerTobias Brunner <tobias@strongswan.org>2016-02-04 11:02:59 +0100
commite8140531fce7c71c7d91cbcb6e6ecaa634b7f3e3 (patch)
tree0a85ae2d2448db35dfeb586fea9fe4e718510142 /src/libipsec/ipsec_policy_mgr.c
parente1e88d5adde099566fee98338026e815dd1e9044 (diff)
downloadstrongswan-e8140531fce7c71c7d91cbcb6e6ecaa634b7f3e3.tar.bz2
strongswan-e8140531fce7c71c7d91cbcb6e6ecaa634b7f3e3.tar.xz
libipsec: Pass the same data to del_policy() as to add_policy()
We already do this for the other kernel interfaces. Fixes e1e88d5adde0 ("libipsec: Don't attempt deletion of any non-IPsec policies")
Diffstat (limited to 'src/libipsec/ipsec_policy_mgr.c')
-rw-r--r--src/libipsec/ipsec_policy_mgr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libipsec/ipsec_policy_mgr.c b/src/libipsec/ipsec_policy_mgr.c
index 1baa894f8..3f312ffd2 100644
--- a/src/libipsec/ipsec_policy_mgr.c
+++ b/src/libipsec/ipsec_policy_mgr.c
@@ -175,9 +175,10 @@ METHOD(ipsec_policy_mgr_t, add_policy, status_t,
}
METHOD(ipsec_policy_mgr_t, del_policy, status_t,
- private_ipsec_policy_mgr_t *this, traffic_selector_t *src_ts,
- traffic_selector_t *dst_ts, policy_dir_t direction, u_int32_t reqid,
- mark_t mark, policy_priority_t policy_priority)
+ private_ipsec_policy_mgr_t *this, host_t *src, host_t *dst,
+ traffic_selector_t *src_ts, traffic_selector_t *dst_ts,
+ policy_dir_t direction, policy_type_t type, ipsec_sa_cfg_t *sa, mark_t mark,
+ policy_priority_t policy_priority)
{
enumerator_t *enumerator;
ipsec_policy_entry_t *current, *found = NULL;
@@ -198,7 +199,7 @@ METHOD(ipsec_policy_mgr_t, del_policy, status_t,
{
if (current->priority == priority &&
current->policy->match(current->policy, src_ts, dst_ts, direction,
- reqid, mark, policy_priority))
+ sa->reqid, mark, policy_priority))
{
this->policies->remove_at(this->policies, enumerator);
found = current;