mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Informs problems and successfully loaded external resources during reload
Resources load mechanism as the SecRemoteRuels were not showing information about the loaded rules while Apache was reloaded. This patch add such information to reload in the same way that it was showing on restart.
This commit is contained in:
@@ -1293,7 +1293,12 @@ static int msre_op_pmFromFile_param_init(msre_rule *rule, char **error_msg) {
|
||||
|
||||
res = msc_remote_download_content(rule->ruleset->mp, fn, NULL,
|
||||
&chunk, error_msg);
|
||||
if (res == -1)
|
||||
if (res == -2)
|
||||
{
|
||||
/* If download failed but SecRemoteRulesFailAction is set to Warn. */
|
||||
return 1;
|
||||
}
|
||||
else if (res < 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user