From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UocLg-00009R-5T for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UocLe-0004i3-SU for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:32:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UocLe-0004hX-LR for qemu-devel@nongnu.org; Mon, 17 Jun 2013 12:32:06 -0400 From: Kevin Wolf Date: Mon, 17 Jun 2013 18:31:48 +0200 Message-Id: <1371486710-17793-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1371486710-17793-1-git-send-email-kwolf@redhat.com> References: <1371486710-17793-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 5/7] 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: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: "Richard W.M. Jones" (Found by Kamil Dudka) Signed-off-by: Richard W.M. Jones Cc: Michael Tokarev Signed-off-by: Kevin Wolf --- block/curl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/curl.c b/block/curl.c index 0fba451..6af8cb7 100644 --- a/block/curl.c +++ b/block/curl.c @@ -452,8 +452,6 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags) if (curl_easy_perform(state->curl)) 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.1.4