ike: Only parse payloads valid for the current IKE version

This commit is contained in:
Tobias Brunner
2014-12-05 15:41:47 +01:00
parent fac310a467
commit 42e0a317c6
4 changed files with 33 additions and 3 deletions
@@ -561,6 +561,7 @@ static status_t parse(private_encrypted_payload_t *this, chunk_t plain)
payload_type_t type;
parser = parser_create(plain);
parser->set_major_version(parser, this->type == PLV1_ENCRYPTED ? 1 : 2);
type = this->next_payload;
while (type != PL_NONE)
{