diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 04:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 14:23:10 +0300 |
commit | 8c10bf43797c2d637b7292575271ab201296b020 (patch) | |
tree | 53e0dd7c382aec1b213c6ee973be10d8dfb15604 /src/net/download.cpp | |
parent | 9e4376f937257ecb72ef29492516e3de1e882dfd (diff) | |
download | plus-8c10bf43797c2d637b7292575271ab201296b020.tar.gz plus-8c10bf43797c2d637b7292575271ab201296b020.tar.bz2 plus-8c10bf43797c2d637b7292575271ab201296b020.tar.xz plus-8c10bf43797c2d637b7292575271ab201296b020.zip |
Fix possible use after free in curl.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r-- | src/net/download.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp index 1c8a6d8dd..ec10c5d78 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -322,9 +322,9 @@ int Download::downloadThread(void *ptr) file); } } - curl_easy_setopt(d->mCurl, CURLOPT_USERAGENT, - strprintf(PACKAGE_EXTENDED_VERSION, - branding.getStringValue("appName").c_str()).c_str()); + curl_easy_setopt(d->mCurl, + CURLOPT_USERAGENT, + settings.userAgent.c_str()); curl_easy_setopt(d->mCurl, CURLOPT_ERRORBUFFER, d->mError); curl_easy_setopt(d->mCurl, CURLOPT_URL, d->mUrl.c_str()); |