From 6dfea4931b4b446b7e6f22d97a24ce22dff7da98 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 20 Apr 2009 15:03:24 +0200 Subject: [PATCH] apache plugin: Fix the signature of the curl callback function. --- src/apache.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/apache.c b/src/apache.c index c661a7a0..522a3e3a 100644 --- a/src/apache.c +++ b/src/apache.c @@ -74,9 +74,18 @@ static void apache_free (apache_t *st) } /* apache_free */ static size_t apache_curl_callback (void *buf, size_t size, size_t nmemb, - apache_t *st) + void *user_data) { size_t len = size * nmemb; + apache_t *st; + + st = user_data; + if (st == NULL) + { + ERROR ("apache plugin: apache_curl_callback: " + "user_data pointer is NULL."); + return (0); + } if (len <= 0) return (len); -- 2.30.2