summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-21 10:01:53 +0200
committerGitHub <noreply@github.com>2018-08-21 10:01:53 +0200
commit06d142b962c7313e5bad3b50a44166eaa080314f (patch)
treeddcc0d3a6102784a10c1b7ee53670ef61b9909cb /lib/easy.c
parent53bda2af6ce340fa071c243d60091877886c2873 (diff)
parente29ff2be2f4ae0dace025672e0289104d58adb2a (diff)
downloadcurl-bagder/http2-easymap.tar.gz
Merge branch 'master' into bagder/http2-easymapbagder/http2-easymap
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 5af90e326..027d0bef3 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -958,6 +958,13 @@ struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data)
outcurl->change.referer_alloc = TRUE;
}
+ /* Reinitialize an SSL engine for the new handle
+ * note: the engine name has already been copied by dupset */
+ if(outcurl->set.str[STRING_SSL_ENGINE]) {
+ if(Curl_ssl_set_engine(outcurl, outcurl->set.str[STRING_SSL_ENGINE]))
+ goto fail;
+ }
+
/* Clone the resolver handle, if present, for the new handle */
if(Curl_resolver_duphandle(&outcurl->state.resolver,
data->state.resolver))