Fix init message arrival check.
This commit is contained in:
@@ -1030,8 +1030,6 @@ METHOD(ike_sa_manager_t, checkout_by_message, ike_sa_t*,
|
||||
}
|
||||
|
||||
if (ike_sa == NULL)
|
||||
{
|
||||
if (is_init)
|
||||
{
|
||||
/* no IKE_SA found, create a new one */
|
||||
id->set_responder_spi(id, get_spi(this));
|
||||
@@ -1055,11 +1053,6 @@ METHOD(ike_sa_manager_t, checkout_by_message, ike_sa_t*,
|
||||
chunk_free(&hash);
|
||||
DBG1(DBG_MGR, "ignoring message, no such IKE_SA");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
chunk_free(&hash);
|
||||
}
|
||||
id->destroy(id);
|
||||
charon->bus->set_sa(charon->bus, ike_sa);
|
||||
return ike_sa;
|
||||
|
||||
Reference in New Issue
Block a user