child-create: Don't create CHILD_SA if the IKE_SA got redirected in IKE_AUTH

This commit is contained in:
Tobias Brunner
2016-03-04 16:02:59 +01:00
parent d68c05d269
commit b6fcb91762
@@ -1220,6 +1220,10 @@ METHOD(task_t, build_r, status_t,
{ /* wait until all authentication round completed */
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;
default:
break;