commit 1e9ac9c8874bfb1a26b03d92d7ee213f0df32c2a
parent fe43cf59f6679a0b73b0ab980a9b120f9a6e2e08
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 13 Apr 2008 04:07:24 +0000
extra check
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c
@@ -990,6 +990,8 @@ MHD_post_process (struct MHD_PostProcessor *pp,
{
if (post_data_len == 0)
return MHD_YES;
+ if (pp == NULL)
+ return MHD_NO;
if (0 == strcasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, pp->encoding))
return post_process_urlencoded (pp, post_data, post_data_len);
if (0 ==