From e76703ae6ac490481f131cc3bc3542b2f7a8d8e7 Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 18 Mar 2001 08:00:10 +0000 Subject: [PATCH] Fix possible crash if content-type is not set. --- main/SAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1