mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetic changes: applies changes suggested by static analysis
This commit is contained in:
@@ -594,7 +594,7 @@ int Multipart::process_part_data(std::string *error) {
|
||||
|
||||
|
||||
int Multipart::process_part_header(std::string *error) {
|
||||
int i, len, rc;
|
||||
int i, len;
|
||||
|
||||
/* Check for nul bytes. */
|
||||
len = MULTIPART_BUF_SIZE - m_bufleft;
|
||||
@@ -623,6 +623,7 @@ int Multipart::process_part_header(std::string *error) {
|
||||
if (((m_buf[0] == '\r') && (m_buf[1] == '\n') && (m_buf[2] == '\0'))
|
||||
|| ((m_buf[0] == '\n') && (m_buf[1] == '\0'))) { /* Empty line. */
|
||||
std::string header_value("");
|
||||
int rc;
|
||||
|
||||
if (m_mpp->m_headers.count("Content-Disposition") == 0) {
|
||||
debug(1, "Multipart: Part missing Content-Disposition header.");
|
||||
|
Reference in New Issue
Block a user