ike-me: Fix safety check to ensure peer ID payload in ME_CONNECT request

The presence of a peer ID is enforced by the message rules for ME_CONNECT,
this just mirrors the safety check also present in `process_r_ms()`.

Fixes: d5cc175833 ("experimental P2P-NAT-T for IKEv2 merged back from branch")
This commit is contained in:
Tobias Brunner
2026-07-24 08:47:35 +02:00
parent 4feb31d0e6
commit 9965a64723
+1
View File
@@ -344,6 +344,7 @@ METHOD(task_t, process_r, status_t,
{
DBG1(DBG_IKE, "received ME_CONNECT without ID_PEER payload"
", aborting");
this->invalid_syntax = TRUE;
break;
}
this->peer_id = id_payload->get_identification(id_payload);