]> granicus.if.org Git - php/commitdiff
Fix possible crash if content-type is not set.
authorfoobar <sniper@php.net>
Sun, 18 Mar 2001 08:00:10 +0000 (08:00 +0000)
committerfoobar <sniper@php.net>
Sun, 18 Mar 2001 08:00:10 +0000 (08:00 +0000)
main/SAPI.c

index a82f47b63e20d21a54499220177c75982689a4a5..e967f6d0ed7567b446ce3037b0807956b13cff04 100644 (file)
@@ -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);