From e19c90fc6b319cb3bb6fbb9a88524dcc7bcbd0aa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Jul 2016 18:35:31 +0200 Subject: [PATCH] Fix random failures caused by CurlDownloader modifying a shared string --- src/libstore/download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 6e39330e4..04a2b325c 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -157,7 +157,7 @@ struct CurlDownloader : public Downloader curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); } - data->clear(); + data = make_ref(); if (requestHeaders) { curl_slist_free_all(requestHeaders);