mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix the regression tests as reported on #1142
This commit is contained in:
@@ -77,7 +77,7 @@ bool Pm::evaluate(Transaction *transaction, const std::string &input) {
|
||||
const char *match = NULL;
|
||||
|
||||
rc = acmp_process_quick(&pt, &match, input.c_str(), input.length());
|
||||
if (rc == 1) {
|
||||
if (rc == 1 && transaction) {
|
||||
transaction->m_matched.push_back(std::string(match));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user