mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
clean stream buffer
This commit is contained in:
parent
0ee85b3485
commit
d4d3497539
@ -419,7 +419,6 @@ apr_status_t modsecurity_request_body_to_stream(modsec_rec *msr, const char *buf
|
|||||||
}
|
}
|
||||||
|
|
||||||
memset(msr->stream_input_data, 0, msr->stream_input_length+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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user