child-create: Don't create CHILD_SA if the IKE_SA got redirected in IKE_AUTH
This commit is contained in:
@@ -1220,6 +1220,10 @@ METHOD(task_t, build_r, status_t,
|
|||||||
{ /* wait until all authentication round completed */
|
{ /* wait until all authentication round completed */
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
|
if (this->ike_sa->has_condition(this->ike_sa, COND_REDIRECTED))
|
||||||
|
{ /* no CHILD_SA is created for redirected SAs */
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
ike_auth = TRUE;
|
ike_auth = TRUE;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user