summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfb15b5)
raw | patch | inline | side by side (parent: cfb15b5)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 20 Apr 2009 13:03:24 +0000 (15:03 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 20 Apr 2009 13:03:24 +0000 (15:03 +0200) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index c661a7a00f4d7b77c7b09cd8b30c9d16124f4424..522a3e3a9c2ef400bf7c8dd60d1c0b4af2fe89ea 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
} /* 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);