mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
clean stream buffer
This commit is contained in:
parent
0cc30904b9
commit
0ee85b3485
@ -418,6 +418,9 @@ apr_status_t modsecurity_request_body_to_stream(modsec_rec *msr, const char *buf
|
||||
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) {
|
||||
memcpy(msr->stream_input_data, buffer, msr->stream_input_length);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user