proposal: Remove MODP_NONE from IKE proposals parsed from strings

This commit is contained in:
Tobias Brunner 2016-06-01 14:53:23 +02:00
parent aae9510148
commit f5e8bc18fd
1 changed files with 10 additions and 0 deletions

View File

@ -453,6 +453,16 @@ static void check_proposal(private_proposal_t *this)
}
}
e->destroy(e);
/* remove MODP_NONE from IKE proposal */
e = array_create_enumerator(this->transforms);
while (e->enumerate(e, &entry))
{
if (entry->type == DIFFIE_HELLMAN_GROUP && !entry->alg)
{
array_remove_at(this->transforms, e);
}
}
e->destroy(e);
}
if (this->protocol == PROTO_ESP)