Mark CHILD_SAs used for trap policies to uninstall them properly.
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Jun 2012 15:43:38 +0000 (17:43 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Jun 2012 16:04:48 +0000 (18:04 +0200)
commitc8f7a114b6b47e12bf411b2b2080bc4c41e01ae3
tree66e712e9ee950df18fdee8c3741771b965cd578b
parent93d9a02e9e3e89925ab3561532ab04eb81bfdb9b
Mark CHILD_SAs used for trap policies to uninstall them properly.

If the installation failed the state is not CHILD_ROUTED which means the
wrong priority is used to uninstall the policies.  This is a problem for
kernel interfaces that keep track of installed policies as now the proper
policy is not found (if the priority is considered).
src/libcharon/sa/child_sa.c