strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libipsec: Don't attempt deletion of any non-IPsec policies
[strongswan.git]
/
src
/
libipsec
/
ipsec_policy_mgr.c
diff --git
a/src/libipsec/ipsec_policy_mgr.c
b/src/libipsec/ipsec_policy_mgr.c
index
e2eaba0
..
1baa894
100644
(file)
--- a/
src/libipsec/ipsec_policy_mgr.c
+++ b/
src/libipsec/ipsec_policy_mgr.c
@@
-183,7
+183,7
@@
METHOD(ipsec_policy_mgr_t, del_policy, status_t,
ipsec_policy_entry_t *current, *found = NULL;
u_int32_t priority;
- if (direction == POLICY_FWD)
+ if (
type != POLICY_IPSEC ||
direction == POLICY_FWD)
{ /* we ignore these policies as we currently have no use for them */
return SUCCESS;
}