controller: Keep following initiate() if the first DH guess was wrong
This commit is contained in:
parent
013857ad79
commit
c39b0c883d
|
@ -303,6 +303,18 @@ METHOD(listener_t, child_state_change, bool,
|
||||||
/* proper delete */
|
/* proper delete */
|
||||||
this->status = SUCCESS;
|
this->status = SUCCESS;
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue