mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Sync trunk from branches/2.1.x (merge in branch fixes).
This commit is contained in:
@@ -54,7 +54,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. */
|
||||
|
||||
@@ -624,11 +624,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