Removed an invalid "Internal error" message forcing auditing of a request (MODSEC-29).

Cleaned up error messages prior to using send_error_bucket().
This commit is contained in:
(no author)
2008-10-21 17:45:18 +00:00
parent c10359a3d9
commit 160294192c
2 changed files with 4 additions and 17 deletions

View File

@@ -567,25 +567,23 @@ apr_status_t modsecurity_process_phase(modsec_rec *msr, unsigned int phase) {
msr->tcache_items = 0;
msr->tcache = apr_hash_make(msr->mp);
if (msr->tcache == NULL) return -1;
if (msr->tcache == NULL) {
msr_log(msr, 1, "Internal error: Failed to allocate transformation cache for phase %d", msr->phase);
return -1;
}
}
switch(phase) {
case 1 :
return modsecurity_process_phase_request_headers(msr);
break;
case 2 :
return modsecurity_process_phase_request_body(msr);
break;
case 3 :
return modsecurity_process_phase_response_headers(msr);
break;
case 4 :
return modsecurity_process_phase_response_body(msr);
break;
case 5 :
return modsecurity_process_phase_logging(msr);
break;
default :
msr_log(msr, 1, "Invalid processing phase: %d", msr->phase);
break;