diff options
author | Christian Schmitz <zivi@mac.com> | 2018-04-15 10:35:06 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-23 14:18:55 +0200 |
commit | d0394de152ec85fac2e4bb05f97035af3a8d7918 (patch) | |
tree | 70578a18fe6da366824d18542c2fc5b3c8aad062 /lib | |
parent | 0a3589ccd0dbf5f3a826b669517ccc12893fa153 (diff) |
curl_global_sslset: always provide available backends
Closes #2499
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/vtls.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |