mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fixed two crashing bugs: race condition when module was initialized and failing config commands in libapr.
This commit is contained in:
@@ -1153,7 +1153,14 @@ ProcessInclude:
|
||||
|
||||
parms->directive = newdir;
|
||||
|
||||
errmsg = invoke_cmd(cmd, parms, mconfig, args);
|
||||
__try
|
||||
{
|
||||
errmsg = invoke_cmd(cmd, parms, mconfig, args);
|
||||
}
|
||||
__except(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
errmsg = "Command failed to execute (check file/folder permissions, syntax, etc.).";
|
||||
}
|
||||
|
||||
if(errmsg != NULL)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user