ikev1: Inverse check when applying received KE value during Quick Mode

Fixes Quick Mode negotiation when PFS is in use.
This commit is contained in:
Martin Willi
2015-03-24 09:37:38 +01:00
parent cf9befcba4
commit 66147ef670
+1 -1
View File
@@ -493,7 +493,7 @@ static bool get_ke(private_quick_mode_t *this, message_t *message)
DBG1(DBG_IKE, "KE payload missing");
return FALSE;
}
if (this->dh->set_other_public_value(this->dh,
if (!this->dh->set_other_public_value(this->dh,
ke_payload->get_key_exchange_data(ke_payload)))
{
DBG1(DBG_IKE, "unable to apply received KE value");