child-create: Just abort CREATE_CHILD_SA request if nonce creation fails
No need to send an illegal request with just an error notify.
This commit is contained in:
@@ -1094,8 +1094,7 @@ METHOD(task_t, build_i, status_t,
|
||||
case CREATE_CHILD_SA:
|
||||
if (!generate_nonce(this))
|
||||
{
|
||||
message->add_notify(message, FALSE, NO_PROPOSAL_CHOSEN,
|
||||
chunk_empty);
|
||||
message->set_exchange_type(message, EXCHANGE_TYPE_UNDEFINED);
|
||||
return SUCCESS;
|
||||
}
|
||||
if (!this->retry && this->dh_group == MODP_NONE)
|
||||
|
||||
Reference in New Issue
Block a user