aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guillem <thomas.guillem@gmail.com>2014-09-12 17:03:03 +0200
committerMax Kellermann <max@duempel.org>2014-09-16 18:25:25 +0200
commit9836b1dddd72a2da573f3922fd99f3bc7ef5feeb (patch)
tree32d8c06ab8776e5c180fafd81346af201c53cc2c
parenta464dc681a64514ad7b8b8dbb7e4c64ea0561396 (diff)
downloadmpd-9836b1dddd72a2da573f3922fd99f3bc7ef5feeb.tar.gz
mpd-9836b1dddd72a2da573f3922fd99f3bc7ef5feeb.tar.xz
mpd-9836b1dddd72a2da573f3922fd99f3bc7ef5feeb.zip
CurlInputPlugin: fix crash after second init call
The second time init was called, http_200_aliases pointed to a freed pointer and leaded to a SEGFAULT.
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index a174fcca6..617805e2c 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -587,6 +587,7 @@ input_curl_finish(void)
});
curl_slist_free_all(http_200_aliases);
+ http_200_aliases = nullptr;
curl_global_cleanup();
}