diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sslgen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c index 9ee3ab1d8..c1a8a3073 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -350,8 +350,11 @@ CURLcode Curl_ssl_addsessionid(struct connectdata *conn, store->name = clone_host; /* clone host name */ store->remote_port = conn->remote_port; /* port number */ - if(!Curl_clone_ssl_config(&conn->ssl_config, &store->ssl_config)) + if(!Curl_clone_ssl_config(&conn->ssl_config, &store->ssl_config)) { + store->sessionid = NULL; /* let caller free sessionid */ + free(clone_host); return CURLE_OUT_OF_MEMORY; + } return CURLE_OK; } |