]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libcharon/encoding/payloads/proposal_substructure.c
proposal-substructure: Fix incorrect type for IKEv2 proposals
[thirdparty/strongswan.git] / src / libcharon / encoding / payloads / proposal_substructure.c
index 415417566dfb9526f2469de15fc636b6ecd3b698..2d0cb1f829f0f89be820a80eb4d618cb9dd4c921 100644 (file)
@@ -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);