summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 04:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 14:23:10 +0300
commit8c10bf43797c2d637b7292575271ab201296b020 (patch)
tree53e0dd7c382aec1b213c6ee973be10d8dfb15604 /src/gui
parent9e4376f937257ecb72ef29492516e3de1e882dfd (diff)
downloadmv-8c10bf43797c2d637b7292575271ab201296b020.tar.gz
mv-8c10bf43797c2d637b7292575271ab201296b020.tar.bz2
mv-8c10bf43797c2d637b7292575271ab201296b020.tar.xz
mv-8c10bf43797c2d637b7292575271ab201296b020.zip
Fix possible use after free in curl.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/whoisonline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 1bd4a633c..72d4cf90c 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -544,9 +544,9 @@ int WhoIsOnline::downloadThread(void *ptr)
&WhoIsOnline::memoryWrite);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, ptr);
- curl_easy_setopt(curl, CURLOPT_USERAGENT,
- strprintf(PACKAGE_EXTENDED_VERSION,
- branding.getStringValue("appName").c_str()).c_str());
+ curl_easy_setopt(curl,
+ CURLOPT_USERAGENT,
+ settings.userAgent.c_str());
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, wio->mCurlError);
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());