]> xenbits.xensource.com Git - qemu-upstream-4.3-testing.git/commit
block/curl: only restrict protocols with libcurl>=7.19.4
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 13 Feb 2013 08:25:34 +0000 (09:25 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 4 Mar 2015 15:59:46 +0000 (15:59 +0000)
commit81aefc3bd7e6a3de25e6ab1c99a7492dd2e6b6c6
treed31df048a07e0f24da16c6805f3af2df2e00cc99
parent1a8d18e3acfd356c5285e4856d94c33b2d707a79
block/curl: only restrict protocols with libcurl>=7.19.4

The curl_easy_setopt(state->curl, CURLOPT_PROTOCOLS, ...) interface was
introduced in libcurl 7.19.4.  Therefore we cannot protect against
CVE-2013-0249 when linking against an older libcurl.

This fixes the build failure introduced by
fb6d1bbd246c7a57ef53d3847ef225cd1349d602.

Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Andreas Färber <andreas.faeber@web.de>
Message-id: 1360743934-8337-1-git-send-email-stefanha@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/curl.c