mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-08 17:28:31 +03:00
This commit is contained in:
@@ -50,7 +50,7 @@ typedef struct msc_string msc_string;
|
||||
#include "http_protocol.h"
|
||||
|
||||
#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 PHASE_REQUEST_HEADERS 1
|
||||
|
||||
@@ -56,7 +56,7 @@ apr_status_t modsecurity_request_body_start(modsec_rec *msr) {
|
||||
* to allocate structures from (not data, which is allocated
|
||||
* 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. */
|
||||
|
||||
@@ -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) {
|
||||
* apr_pool_clear(msr->msc_reqbody_mp);
|
||||
* }
|
||||
*/
|
||||
if (msr->msc_reqbody_mp != NULL) {
|
||||
apr_pool_destroy(msr->msc_reqbody_mp);
|
||||
msr->msc_reqbody_mp = NULL;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user