From 1fff160bc00d1c575440cd5e596fa2d4f5ab913e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 4 Feb 2016 00:22:59 +0100 Subject: [PATCH] Have OpenSSL::Test::Utils::available_protocols load configdata as well Otherwise, it could typically always return an empty list, since it's often called first if at all. Reviewed-by: Ben Laurie --- test/testlib/OpenSSL/Test/Utils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testlib/OpenSSL/Test/Utils.pm b/test/testlib/OpenSSL/Test/Utils.pm index c0248322a7..8f75013a6c 100644 --- a/test/testlib/OpenSSL/Test/Utils.pm +++ b/test/testlib/OpenSSL/Test/Utils.pm @@ -130,6 +130,7 @@ sub disabled { } sub available_protocols { + load_configdata() unless $configdata_loaded; my $protocol_class = shift; if (exists $available_protocols{lc $protocol_class}) { return @{$available_protocols{lc $protocol_class}} -- 2.25.1