openssl: Fix size of plugin feature array

Fixes: 312847e1a322 ("openssl: Add curve25519 and curve448 after ECDH groups")
This commit is contained in:
Tobias Brunner 2023-02-17 16:58:19 +01:00
parent 27d41a2442
commit 48ef9bfbb6

View 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)