Clear initiator flag when checking out initial IKEv1 SA from message

This commit is contained in:
Martin Willi
2012-03-20 17:31:37 +01:00
parent 8bcd9bd161
commit a0fa7a7f64
+4
View File
@@ -997,6 +997,10 @@ METHOD(ike_sa_manager_t, checkout_by_message, ike_sa_t*,
{
ike_version = IKEV1;
is_init = TRUE;
if (id->is_initiator(id))
{ /* not set in IKEv1, switch back before applying to new SA */
id->switch_initiator(id);
}
}
}
}