mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-26 09:17:00 -04:00
http: Reset curl TLS options between transfers
Previously the curl object potentially leaked cert infos from different urls
This commit is contained in:
committed by
Sebastian Wick
parent
8ac2adefce
commit
420ce91428
@@ -627,6 +627,10 @@ flatpak_download_http_uri_once (FlatpakHttpSession *session,
|
||||
curl_easy_setopt (curl, CURLOPT_WRITEDATA, (void *)data);
|
||||
curl_easy_setopt (curl, CURLOPT_HEADERDATA, (void *)data);
|
||||
|
||||
curl_easy_setopt (curl, CURLOPT_CAINFO, NULL);
|
||||
curl_easy_setopt (curl, CURLOPT_SSLCERT, NULL);
|
||||
curl_easy_setopt (curl, CURLOPT_SSLKEY, NULL);
|
||||
|
||||
if (data->certificates)
|
||||
{
|
||||
if (data->certificates->ca_cert_file)
|
||||
|
||||
Reference in New Issue
Block a user