From 9619b5fa9092c3adb7c943d2f40f5f6025632e38 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Fri, 9 Mar 2007 16:12:51 +0000 Subject: [PATCH] last patch removed, changed CURLOPT_FILE to CURLOPT_WRITEDATA --- src/pluto/fetch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pluto/fetch.c b/src/pluto/fetch.c index 83d4c766c..d3d922f63 100644 --- a/src/pluto/fetch.c +++ b/src/pluto/fetch.c @@ -337,7 +337,6 @@ fetch_curl(char *url, chunk_t *blob) { plog("fetching uri (%s) with libcurl failed: %s", url, errorbuffer); } - curl_slist_free_all(headers); curl_easy_cleanup(curl); /* not using freeanychunk because of realloc (no leak detective) */ curl_free(response.ptr); @@ -702,7 +701,7 @@ fetch_ocsp_status(ocsp_location_t* location) curl_easy_setopt(curl, CURLOPT_URL, uri); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_buffer); - curl_easy_setopt(curl, CURLOPT_FILE, (void *)&response); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&response); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, request.ptr); curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, request.len); curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &errorbuffer);