Improves SecRemoteRules messages on IIS

IIS was not displaying correctly the error messages and the amount of
loaded rules while the operator SecRemoteRules was used.
This commit is contained in:
Felipe Zimmerle
2015-02-12 05:29:45 -08:00
parent f7c7a30db9
commit b304ab1aa2
5 changed files with 46 additions and 13 deletions

View File

@@ -797,8 +797,12 @@ CMyHttpModule::OnBeginRequest(
goto Finished;
}
modsecStatusEngineCall();
modsecReportRemoteLoadedRules();
if (this->status_call_already_sent == false)
{
this->status_call_already_sent = true;
modsecStatusEngineCall();
}
}
delete apppath;
}
@@ -1254,6 +1258,8 @@ CMyHttpModule::CMyHttpModule()
GetSystemInfo(&sysInfo);
m_dwPageSize = sysInfo.dwPageSize;
this->status_call_already_sent = false;
InitializeCriticalSection(&m_csLock);
modsecSetLogHook(this, Log);