mirror of https://github.com/Icinga/icinga2.git
parent
eeb01831c0
commit
c15c9cce5e
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "base/scriptframe.hpp"
|
||||
#include "base/scriptglobal.hpp"
|
||||
#include "base/exception.hpp"
|
||||
|
||||
using namespace icinga;
|
||||
|
||||
|
@ -71,5 +72,8 @@ void ScriptFrame::PushFrame(ScriptFrame *frame)
|
|||
m_ScriptFrames.reset(frames);
|
||||
}
|
||||
|
||||
if (frames->size() > 500)
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Recursion level too deep."));
|
||||
|
||||
frames->push(frame);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue