mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Check return value of modsecurity_request_body_store
This commit is contained in:
committed by
Felipe Zimmerle
parent
6ce7f4d689
commit
7fff8938ba
@@ -283,7 +283,9 @@ apr_status_t read_request_body(modsec_rec *msr, char **error_msg) {
|
||||
}
|
||||
|
||||
if (msr->txcfg->stream_inbody_inspection == 1) {
|
||||
modsecurity_request_body_to_stream(msr, buf, buflen, error_msg);
|
||||
if (modsecurity_request_body_to_stream(msr, buf, buflen, error_msg) < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
msr->reqbody_length += buflen;
|
||||
|
Reference in New Issue
Block a user