Cosmetics: Fix 0x0bdda1 indentation issues

This commit is contained in:
Felipe Zimmerle
2017-05-03 09:33:35 -03:00
parent 51f312736a
commit caadf97524

View File

@@ -1889,10 +1889,15 @@ static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_re
} }
} }
else if (rc < 0) { else if (rc < 0) {
const char *id = "", *msg = ""; const char *id = "";
const char *msg = "";
if (rule->actionset) { if (rule->actionset) {
if (rule->actionset->id) id = rule->actionset->id; if (rule->actionset->id) {
if (rule->actionset->msg) msg = rule->actionset->msg; id = rule->actionset->id;
}
if (rule->actionset->msg) {
msg = rule->actionset->msg;
}
} }
msr_log(msr, 1, "Rule processing failed (id=%s, msg=%s).", id, msg); msr_log(msr, 1, "Rule processing failed (id=%s, msg=%s).", id, msg);
@@ -1924,10 +1929,15 @@ static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_re
} }
} }
else { else {
const char *id = "", *msg = ""; const char *id = "";
const char *msg = "";
if (rule->actionset) { if (rule->actionset) {
if (rule->actionset->id) id = rule->actionset->id; if (rule->actionset->id) {
if (rule->actionset->msg) msg = rule->actionset->msg; id = rule->actionset->id;
}
if (rule->actionset->msg) {
msg = rule->actionset->msg;
}
} }
msr_log(msr, 1, "Rule processing failed with unknown return code: %d (id=%s, msg=%s).", rc, id, msg); msr_log(msr, 1, "Rule processing failed with unknown return code: %d (id=%s, msg=%s).", rc, id, msg);
apr_table_clear(msr->matched_vars); apr_table_clear(msr->matched_vars);