aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/tasks/child_create.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-03-20 16:13:21 +0000
committerMartin Willi <martin@strongswan.org>2007-03-20 16:13:21 +0000
commit0f33e8264a788dcf68c008c7cb2d27396f1e4480 (patch)
treeb74dbc0a5504bf650a56e2d513d68c40138305e0 /src/charon/sa/tasks/child_create.c
parente70d5576fa89e62ef7499e7398e5dc07739921c1 (diff)
downloadstrongswan-0f33e8264a788dcf68c008c7cb2d27396f1e4480.tar.bz2
strongswan-0f33e8264a788dcf68c008c7cb2d27396f1e4480.tar.xz
fixed some exchange collisions (except IKE/CHILD rekeying)
Diffstat (limited to 'src/charon/sa/tasks/child_create.c')
-rw-r--r--src/charon/sa/tasks/child_create.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/charon/sa/tasks/child_create.c b/src/charon/sa/tasks/child_create.c
index e97f7814c..9526146a8 100644
--- a/src/charon/sa/tasks/child_create.c
+++ b/src/charon/sa/tasks/child_create.c
@@ -553,6 +553,13 @@ static status_t build_r(private_child_create_t *this, message_t *message)
break;
}
+ if (this->ike_sa->get_state(this->ike_sa) == IKE_REKEYING)
+ {
+ SIG(CHILD_UP_FAILED, "unable to create CHILD_SA while rekeying IKE_SA");
+ message->add_notify(message, TRUE, NO_ADDITIONAL_SAS, chunk_empty);
+ return SUCCESS;
+ }
+
if (this->policy == NULL)
{
SIG(CHILD_UP_FAILED, "no acceptable policy found");