This commit is contained in:
ivanr
2007-03-08 18:44:14 +00:00
parent 3fb68829b9
commit 0df7688177
2 changed files with 6 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ typedef struct msc_string msc_string;
#include "http_protocol.h" #include "http_protocol.h"
#define MODULE_NAME "ModSecurity" #define MODULE_NAME "ModSecurity"
#define MODULE_RELEASE "2.1.1-dev3" #define MODULE_RELEASE "2.1.1-dev4"
#define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)") #define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)")
#define PHASE_REQUEST_HEADERS 1 #define PHASE_REQUEST_HEADERS 1

View File

@@ -56,7 +56,7 @@ apr_status_t modsecurity_request_body_start(modsec_rec *msr) {
* to allocate structures from (not data, which is allocated * to allocate structures from (not data, which is allocated
* via malloc). * via malloc).
*/ */
apr_pool_create(&msr->msc_reqbody_mp, msr->mp); apr_pool_create(&msr->msc_reqbody_mp, NULL);
/* Initialise request body processors, if any. */ /* Initialise request body processors, if any. */
@@ -626,11 +626,10 @@ apr_status_t modsecurity_request_body_clear(modsec_rec *msr) {
} }
} }
/* NOTE No need to clear the pool as it has already been destroyed if (msr->msc_reqbody_mp != NULL) {
* if (msr->msc_reqbody_mp != NULL) { apr_pool_destroy(msr->msc_reqbody_mp);
* apr_pool_clear(msr->msc_reqbody_mp); msr->msc_reqbody_mp = NULL;
* } }
*/
return 1; return 1;
} }