aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-03-11 15:48:51 +0100
committerTobias Brunner <tobias@strongswan.org>2015-03-19 10:24:15 +0100
commit5c6a62ceb6657047d4e6e2857f634145c4b7caa8 (patch)
treeafb64d888d9d9264b6d742a7b720da41c78eb3fc /src/libcharon/sa
parent7d02f8dbf441a9bd65cc9d52a4d1aa3a80b6d6da (diff)
downloadstrongswan-5c6a62ceb6657047d4e6e2857f634145c4b7caa8.tar.bz2
strongswan-5c6a62ceb6657047d4e6e2857f634145c4b7caa8.tar.xz
ikev1: Mark rekeyed CHILD_SAs as INSTALLED
Since we keep them around until they finally expire they otherwise would block IKE_SA rekeying/reauthentication.
Diffstat (limited to 'src/libcharon/sa')
-rw-r--r--src/libcharon/sa/ikev1/tasks/quick_mode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c
index 828b166d0..4b5b0160a 100644
--- a/src/libcharon/sa/ikev1/tasks/quick_mode.c
+++ b/src/libcharon/sa/ikev1/tasks/quick_mode.c
@@ -401,6 +401,8 @@ static bool install(private_quick_mode_t *this)
if (old)
{
charon->bus->child_rekey(charon->bus, old, this->child_sa);
+ /* rekeyed CHILD_SAs stay installed until they expire */
+ old->set_state(old, CHILD_INSTALLED);
}
else
{