mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-12-31 05:39:10 +03:00
Merge pull request #3467 from chenuduss/v3/master
Minor edit with remove useless checks
This commit is contained in:
@@ -580,7 +580,7 @@ int Multipart::process_part_data(std::string *error, size_t offset) {
|
|||||||
m_mpp->m_tmp_file->Open();
|
m_mpp->m_tmp_file->Open();
|
||||||
|
|
||||||
/* do we have an opened file? */
|
/* do we have an opened file? */
|
||||||
if (!m_mpp->m_tmp_file || m_mpp->m_tmp_file->getFd() < 0) {
|
if (m_mpp->m_tmp_file->getFd() < 0) {
|
||||||
ms_dbg_a(m_transaction, 1,
|
ms_dbg_a(m_transaction, 1,
|
||||||
"Multipart: Failed to create file: " \
|
"Multipart: Failed to create file: " \
|
||||||
+ m_mpp->m_tmp_file->getFilename());
|
+ m_mpp->m_tmp_file->getFilename());
|
||||||
|
|||||||
@@ -1312,7 +1312,7 @@ int Transaction::processLogging() {
|
|||||||
this->m_rules->evaluate(modsecurity::LoggingPhase, this);
|
this->m_rules->evaluate(modsecurity::LoggingPhase, this);
|
||||||
|
|
||||||
/* If relevant, save this transaction information at the audit_logs */
|
/* If relevant, save this transaction information at the audit_logs */
|
||||||
if (m_rules != NULL && m_rules->m_auditLog != NULL) {
|
if (m_rules->m_auditLog != NULL) {
|
||||||
int parts = this->m_rules->m_auditLog->getParts();
|
int parts = this->m_rules->m_auditLog->getParts();
|
||||||
ms_dbg(8, "Checking if this request is suitable to be " \
|
ms_dbg(8, "Checking if this request is suitable to be " \
|
||||||
"saved as an audit log.");
|
"saved as an audit log.");
|
||||||
|
|||||||
Reference in New Issue
Block a user