From de77957edab2a6bc1fc3667b25532b33961ab399 Mon Sep 17 00:00:00 2001 From: SophieK <35367649+suishixingkong@users.noreply.github.com> Date: Thu, 25 Apr 2019 14:39:32 +0800 Subject: [PATCH] proposal-substructure: Fix incorrect type for IKEv2 proposals Luckily, the type is only used once when generating payloads and there it doesn't matter because the encoding rules are the same. Closes strongswan/strongswan#135. --- src/libcharon/encoding/payloads/proposal_substructure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/encoding/payloads/proposal_substructure.c b/src/libcharon/encoding/payloads/proposal_substructure.c index 415417566d..2d0cb1f829 100644 --- a/src/libcharon/encoding/payloads/proposal_substructure.c +++ b/src/libcharon/encoding/payloads/proposal_substructure.c @@ -1539,7 +1539,7 @@ proposal_substructure_t *proposal_substructure_create_from_proposal_v2( private_proposal_substructure_t *this; this = (private_proposal_substructure_t*) - proposal_substructure_create(PLV2_SECURITY_ASSOCIATION); + proposal_substructure_create(PLV2_PROPOSAL_SUBSTRUCTURE); set_from_proposal_v2(this, proposal); set_data(this, proposal); -- 2.39.2