mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
clean stream buffer
This commit is contained in:
@@ -418,6 +418,9 @@ apr_status_t modsecurity_request_body_to_stream(modsec_rec *msr, const char *buf
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(msr->stream_input_data, 0, msr->stream_input_length+1);
|
||||||
|
msr->stream_input_data[msr->stream_input_length] = '\0';
|
||||||
|
|
||||||
if(first_pkt) {
|
if(first_pkt) {
|
||||||
memcpy(msr->stream_input_data, buffer, msr->stream_input_length);
|
memcpy(msr->stream_input_data, buffer, msr->stream_input_length);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user