mirror of
https://github.com/curl/curl.git
synced 2026-07-16 01:17:16 +03:00
vtls: free ssl_config leftovers on out-of-memory
Torture testing 2034 and 2037 found this. Reported-by: Marc Hörsken Fixes #5108 Closes #5109
This commit is contained in:
parent
404d5f200b
commit
2eba5e4c7b
1 changed files with 1 additions and 0 deletions
|
|
@ -489,6 +489,7 @@ CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
|
|||
store->scheme = conn->handler->scheme;
|
||||
|
||||
if(!Curl_clone_primary_ssl_config(ssl_config, &store->ssl_config)) {
|
||||
Curl_free_primary_ssl_config(&store->ssl_config);
|
||||
store->sessionid = NULL; /* let caller free sessionid */
|
||||
free(clone_host);
|
||||
free(clone_conn_to_host);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue