ike: Make check for known payloads depend on IKE version

This commit is contained in:
Tobias Brunner
2014-12-05 15:41:46 +01:00
parent 7bd5548538
commit fac310a467
4 changed files with 41 additions and 26 deletions
+1 -1
View File
@@ -2475,7 +2475,7 @@ static status_t decrypt_payloads(private_message_t *this, keymat_t *keymat)
was_encrypted = "encrypted fragment payload";
}
if (payload_is_known(type) && !was_encrypted &&
if (payload_is_known(type, this->major_version) && !was_encrypted &&
!is_connectivity_check(this, payload) &&
this->exchange_type != AGGRESSIVE)
{