Checkin fix to rule removal code to avoid placeholders.

This commit is contained in:
brectanus
2007-12-02 15:35:09 +00:00
parent 9e9bb318b3
commit 2bf4556cd0

View File

@@ -1028,6 +1028,8 @@ static int msre_ruleset_phase_rule_remove_with_exception(msre_ruleset *ruleset,
if (mode == 0) { /* Looking for next rule. */
int remove_rule = 0;
/* Only remove non-placeholder rules */
if (rule->placeholder == RULE_PH_NONE) {
switch(re->type) {
case RULE_EXCEPTION_REMOVE_ID :
if ((rule->actionset != NULL)&&(rule->actionset->id != NULL)) {
@@ -1054,6 +1056,7 @@ static int msre_ruleset_phase_rule_remove_with_exception(msre_ruleset *ruleset,
break;
}
}
if (remove_rule) {
/* Do not increment j. */