From d0394de152ec85fac2e4bb05f97035af3a8d7918 Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Sun, 15 Apr 2018 10:35:06 +0200 Subject: curl_global_sslset: always provide available backends Closes #2499 --- lib/vtls/vtls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index 7ad18a3df..07054f39d 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -1304,6 +1304,9 @@ CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, { int i; + if(avail) + *avail = (const curl_ssl_backend **)&available_backends; + if(Curl_ssl != &Curl_ssl_multi) return id == Curl_ssl->info.id ? CURLSSLSET_OK : CURLSSLSET_TOO_LATE; @@ -1315,8 +1318,6 @@ CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, } } - if(avail) - *avail = (const curl_ssl_backend **)&available_backends; return CURLSSLSET_UNKNOWN_BACKEND; } -- cgit v1.2.3