diff options
author | foobar <sniper@php.net> | 2001-03-18 08:00:10 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-03-18 08:00:10 +0000 |
commit | e76703ae6ac490481f131cc3bc3542b2f7a8d8e7 (patch) | |
tree | 4e1bfffd8b038cc3089644fc35e5933048c94b03 /main/SAPI.c | |
parent | 4f00125b7a7205e5606e1efe7682e5e0346e329c (diff) | |
download | php-git-e76703ae6ac490481f131cc3bc3542b2f7a8d8e7.tar.gz |
Fix possible crash if content-type is not set.
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |