Do not recreate existing create_child subtask when retrying with different DH group

This commit is contained in:
Martin Willi
2009-11-23 13:50:01 +01:00
parent 0d1d19b99d
commit 06f02f993c
+5 -2
View File
@@ -152,9 +152,12 @@ static status_t build_i(private_child_rekey_t *this, message_t *message)
message->add_payload(message, (payload_t*)notify);
/* ... our CHILD_CREATE task does the hard work for us. */
if (!this->child_create)
{
this->child_create = child_create_create(this->ike_sa, config, TRUE,
NULL, NULL);
}
reqid = this->child_sa->get_reqid(this->child_sa);
this->child_create = child_create_create(this->ike_sa, config, TRUE,
NULL, NULL);
this->child_create->use_reqid(this->child_create, reqid);
this->child_create->task.build(&this->child_create->task, message);