Skip to content

Commit 3ef77de

Browse files
committed
Merging to release 2.7.1
1 parent 05e3a17 commit 3ef77de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
* Fixed DROP action was disabled for Apache 2 module by mistake.
1212

13+
* Fixed bug when use ctl:ruleRemoveByTag.
14+
1315
* Updated Reference Manual.
1416

1517
15 Oct 2012 - 2.7.0

apache2/re_actions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
10161016
return 1;
10171017
} else
10181018
if (strcasecmp(name, "ruleRemoveByTag") == 0) {
1019-
rule_exception *re = apr_pcalloc(mptmp, sizeof(rule_exception));
1019+
rule_exception *re = apr_pcalloc(msr->mp, sizeof(rule_exception));
10201020
re->type = RULE_EXCEPTION_REMOVE_TAG;
10211021
re->param = (const char *)apr_pstrdup(msr->mp, value);
10221022
re->param_data = msc_pregcomp(msr->mp, re->param, 0, NULL, NULL);
@@ -1034,7 +1034,7 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
10341034
return 1;
10351035
} else
10361036
if (strcasecmp(name, "ruleRemoveByMsg") == 0) {
1037-
rule_exception *re = apr_pcalloc(mptmp, sizeof(rule_exception));
1037+
rule_exception *re = apr_pcalloc(msr->mp, sizeof(rule_exception));
10381038
re->type = RULE_EXCEPTION_REMOVE_MSG;
10391039
re->param = (const char *)apr_pstrdup(msr->mp, value);
10401040
re->param_data = msc_pregcomp(msr->mp, re->param, 0, NULL, NULL);

0 commit comments

Comments
 (0)