From: foobar Date: Sun, 18 Mar 2001 08:00:10 +0000 (+0000) Subject: Fix possible crash if content-type is not set. X-Git-Tag: php-4.0.6RC1~657 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e76703ae6ac490481f131cc3bc3542b2f7a8d8e7;p=php Fix possible crash if content-type is not set. --- diff --git a/main/SAPI.c b/main/SAPI.c index a82f47b63e..e967f6d0ed 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -97,7 +97,7 @@ SAPI_API void sapi_free_header(sapi_header_struct *sapi_header) SAPI_API void sapi_handle_post(void *arg SLS_DC) { - if (SG(request_info).post_entry) { + if (SG(request_info).post_entry && SG(request_info).content_type_dup) { SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg SLS_CC); if (SG(request_info).post_data) { efree(SG(request_info).post_data);