mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
API CHANGE: Rules::merge signature was change to includes error msg
This commit is contained in:
parent
5e59d19121
commit
dbcf5a7198
@ -99,7 +99,7 @@ extern "C" {
|
||||
|
||||
Rules *msc_create_rules_set();
|
||||
void msc_rules_dump(Rules *rules);
|
||||
int msc_rules_merge(Rules *rules_dst, Rules *rules_from);
|
||||
int msc_rules_merge(Rules *rules_dst, Rules *rules_from, const char **error);
|
||||
int msc_rules_add_remote(Rules *rules, const char *key, const char *uri,
|
||||
const char **error);
|
||||
int msc_rules_add_file(Rules *rules, const char *file, const char **error);
|
||||
|
@ -277,8 +277,12 @@ extern "C" void msc_rules_dump(Rules *rules) {
|
||||
|
||||
|
||||
extern "C" int msc_rules_merge(Rules *rules_dst,
|
||||
Rules *rules_from) {
|
||||
return rules_dst->merge(rules_from);
|
||||
Rules *rules_from, const char **error) {
|
||||
int ret = rules_dst->merge(rules_from);
|
||||
if (ret < 0) {
|
||||
*error = strdup(rules_dst->getParserError().c_str());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user