]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Fix size of plugin feature array
authorTobias Brunner <tobias@strongswan.org>
Fri, 17 Feb 2023 15:58:19 +0000 (16:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Feb 2023 15:58:19 +0000 (16:58 +0100)
Fixes: 312847e1a322 ("openssl: Add curve25519 and curve448 after ECDH groups")
src/libstrongswan/plugins/openssl/openssl_plugin.c

index f641bb1f6fa3a9a377fd655dce8609b39e5a0e0d..2807e2316e72ebb08bee9a6690406443b78d521f 100644 (file)
@@ -709,7 +709,7 @@ METHOD(plugin_t, get_features, int,
                        PLUGIN_PROVIDE(KE, CURVE_448),
 #endif /* OPENSSL_VERSION_NUMBER && !OPENSSL_NO_ECDH */
        };
-       static plugin_feature_t f[countof(f_base) + countof(f_ecdh)] = {};
+       static plugin_feature_t f[countof(f_base) + countof(f_ecdh) + countof(f_xdh)] = {};
        static int count = 0;
 
        if (!count)