diff options
author | Martin Willi <martin@strongswan.org> | 2007-03-20 16:13:21 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-03-20 16:13:21 +0000 |
commit | 0f33e8264a788dcf68c008c7cb2d27396f1e4480 (patch) | |
tree | b74dbc0a5504bf650a56e2d513d68c40138305e0 /src/charon/sa/tasks/child_create.c | |
parent | e70d5576fa89e62ef7499e7398e5dc07739921c1 (diff) | |
download | strongswan-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.c | 7 |
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"); |