Fixed: chuck null pointer when unknown CT is sent and over in-memory limit

This commit is contained in:
Breno Silva 2013-04-04 11:04:22 -04:00
parent d8262fc6cf
commit 0840b13612

View File

@ -170,6 +170,7 @@ static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr,
/* Would storing this chunk mean going over the limit? */
if ((msr->msc_reqbody_spilltodisk)
&& (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_ON)
&& (msr->msc_reqbody_length + length > (apr_size_t)msr->txcfg->reqbody_inmemory_limit))
{
msc_data_chunk **chunks;