From: SophieK <35367649+suishixingkong@users.noreply.github.com> Date: Thu, 25 Apr 2019 06:39:32 +0000 (+0800) Subject: proposal-substructure: Fix incorrect type for IKEv2 proposals X-Git-Tag: 5.8.0rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de77957edab2a6bc1fc3667b25532b33961ab399;p=thirdparty%2Fstrongswan.git 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. --- 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);