mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix return value of msc_rules_merge()
Regarding to the documentation msc_rules_merge() should return the number of merged rules instead of 0 in all cases.
This commit is contained in:
committed by
Felipe Zimmerle
parent
4643501507
commit
85edff522d
@@ -317,9 +317,7 @@ extern "C" void msc_rules_dump(Rules *rules) {
|
||||
|
||||
extern "C" int msc_rules_merge(Rules *rules_dst,
|
||||
Rules *rules_from) {
|
||||
rules_dst->merge(rules_from);
|
||||
|
||||
return 0;
|
||||
return rules_dst->merge(rules_from);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user