]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Return correct number of plugin features if ECDH groups are omitted
authorTobias Brunner <tobias@strongswan.org>
Fri, 4 Feb 2022 15:30:51 +0000 (16:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Feb 2022 15:30:51 +0000 (16:30 +0100)
Fixes: 46a6b062822c ("openssl: Only announce ECDH groups actually supported by OpenSSL")
src/libstrongswan/plugins/openssl/openssl_plugin.c

index c93ea60482150319b757f48ad785fac4e813fd03..6b4923649057cfe08598713d574b8482a52fc9fa 100644 (file)
@@ -881,7 +881,7 @@ METHOD(plugin_t, get_features, int,
 #endif
        }
        *features = f;
-       return countof(f);
+       return count;
 }
 
 METHOD(plugin_t, destroy, void,