mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fixing missing return value check for hashing response injection failure
This commit is contained in:
parent
b3f197dd1f
commit
d434a6c043
@ -609,8 +609,12 @@ static int flatten_response_body(modsec_rec *msr) {
|
||||
retval = hash_response_body_links(msr);
|
||||
if(retval > 0) {
|
||||
retval = inject_hashed_response_body(msr, retval);
|
||||
if (msr->txcfg->debuglog_level >= 4) {
|
||||
msr_log(msr, 4, "Hash completed in %" APR_TIME_T_FMT " usec.", (apr_time_now() - time1));
|
||||
if(retval < 0){
|
||||
msr_log(msr, 1, "inject_hashed_response_body: Unable to inject hash into response body. Returning response without changes." );
|
||||
}else{
|
||||
if (msr->txcfg->debuglog_level >= 4) {
|
||||
msr_log(msr, 4, "Hash completed in %" APR_TIME_T_FMT " usec.", (apr_time_now() - time1));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user