]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-create: Respond with TEMPORARY_FAILURE while rekeying/deleting IKE_SA
authorTobias Brunner <tobias@strongswan.org>
Mon, 30 May 2016 16:07:53 +0000 (18:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:48:05 +0000 (18:48 +0200)
src/libcharon/sa/ikev2/tasks/child_create.c

index ea56e161e77ab1950680caef2bccc659519445d7..33247aa33f82f88f6fad78aa1ba0c203ecacbe3a 100644 (file)
@@ -1232,13 +1232,13 @@ METHOD(task_t, build_r, status_t,
        if (this->ike_sa->get_state(this->ike_sa) == IKE_REKEYING)
        {
                DBG1(DBG_IKE, "unable to create CHILD_SA while rekeying IKE_SA");
-               message->add_notify(message, TRUE, NO_ADDITIONAL_SAS, chunk_empty);
+               message->add_notify(message, TRUE, TEMPORARY_FAILURE, chunk_empty);
                return SUCCESS;
        }
        if (this->ike_sa->get_state(this->ike_sa) == IKE_DELETING)
        {
                DBG1(DBG_IKE, "unable to create CHILD_SA while deleting IKE_SA");
-               message->add_notify(message, TRUE, NO_ADDITIONAL_SAS, chunk_empty);
+               message->add_notify(message, TRUE, TEMPORARY_FAILURE, chunk_empty);
                return SUCCESS;
        }