From fff5a5765683bbee5d359f0a07efff4c78a6753c Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Sun, 20 Aug 2017 17:32:44 -0300 Subject: [PATCH] Changes auditlog type to serial by default --- others/libinjection | 2 +- src/audit_log/audit_log.cc | 8 ++++---- test/test-cases/secrules-language-tests | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/others/libinjection b/others/libinjection index 54e9a6ec..da027ab5 160000 --- a/others/libinjection +++ b/others/libinjection @@ -1 +1 @@ -Subproject commit 54e9a6ec017c687c8fad1f347a263a7b259f8525 +Subproject commit da027ab52f9cf14401dd92e34e6683d183bdb3b4 diff --git a/src/audit_log/audit_log.cc b/src/audit_log/audit_log.cc index cc0d4b49..9fcc5c7b 100644 --- a/src/audit_log/audit_log.cc +++ b/src/audit_log/audit_log.cc @@ -204,17 +204,17 @@ bool AuditLog::setType(AuditLogType audit_type) { bool AuditLog::init(std::string *error) { - if (m_type == SerialAuditLogType) { - m_writer = new audit_log::writer::Serial(this); + if (m_type == ParallelAuditLogType) { + m_writer = new audit_log::writer::Parallel(this); } else if (m_type == HttpsAuditLogType) { m_writer = new audit_log::writer::Https(this); } else { /* - * if (m_type == ParallelAuditLogType + * if (m_type == SerialAuditLogType * || m_type == NotSetAuditLogType) * */ - m_writer = new audit_log::writer::Parallel(this); + m_writer = new audit_log::writer::Serial(this); } if (m_status == OffAuditLogStatus || m_status == NotSetLogStatus) { diff --git a/test/test-cases/secrules-language-tests b/test/test-cases/secrules-language-tests index a9c58a25..add8f637 160000 --- a/test/test-cases/secrules-language-tests +++ b/test/test-cases/secrules-language-tests @@ -1 +1 @@ -Subproject commit a9c58a25771493ac2abadffbfd5dce1213d5db93 +Subproject commit add8f637703ac2c069f1b650164b70cd35675228