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