mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix: ScriptFrame's 'Self' attribute gets corrupted when an expressions throws an exception
fixes #9795
This commit is contained in:
parent
9d098482dd
commit
5bd46c2b38
@ -460,7 +460,8 @@ ExpressionResult DictExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhint
|
||||
result = element.GetValue();
|
||||
}
|
||||
} catch (...) {
|
||||
std::swap(self, frame.Self);
|
||||
if (!m_Inline)
|
||||
std::swap(self, frame.Self);
|
||||
throw;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user