From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um20D-0008Ta-5X for qemu-devel@nongnu.org; Mon, 10 Jun 2013 09:19:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um20B-0003aZ-UH for qemu-devel@nongnu.org; Mon, 10 Jun 2013 09:19:17 -0400 From: "Richard W.M. Jones" Date: Mon, 10 Jun 2013 14:19:07 +0100 Message-Id: <1370870347-22080-1-git-send-email-rjones@redhat.com> Subject: [Qemu-devel] [PATCH] curl: Don't set curl options on the handle just before it's going to be deleted. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, kwolf@redhat.com, stefanha@redhat.com From: "Richard W.M. Jones" (Found by Kamil Dudka) Signed-off-by: Richard W.M. Jones --- block/curl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index b634ccf..bf31efe 100644 --- a/block/curl.c +++ b/block/curl.c @@ -453,7 +453,6 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags) goto out; curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d); curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb); - curl_easy_setopt(state->curl, CURLOPT_NOBODY, 0); if (d) s->len = (size_t)d; else if(!s->len) -- 1.8.2.1