controller: Keep following initiate() if the first DH guess was wrong

This commit is contained in:
Martin Willi 2014-11-03 09:39:16 +01:00
parent 013857ad79
commit c39b0c883d
1 changed files with 12 additions and 0 deletions

View File

@ -303,6 +303,18 @@ METHOD(listener_t, child_state_change, bool,
/* proper delete */
this->status = SUCCESS;
break;
case CHILD_RETRYING:
/* retrying with a different DH group; survive another
* initiation round */
this->status = NEED_MORE;
return TRUE;
case CHILD_CREATED:
if (this->status == NEED_MORE)
{
this->status = FAILED;
return TRUE;
}
break;
default:
break;
}