From 5827927c46230edb30caa33a9e17c411ca6a30dd Mon Sep 17 00:00:00 2001 From: tildeslash <info@tildeslash.com> Date: Tue, 14 Aug 2018 21:01:39 +0200 Subject: [PATCH] Fixed: Issue #764: Monit may crash if "unmonitor" or "stop" action was triggered by some test: the _handleAction() will call Util_monitorUnset() which frees the service events list, including the current event which triggered the action. The reset of the state_change flag (which is not necessary) then dereferenced a freed event. --- diff --git a/src/event.c b/src/event.c index 166e8bc..c08bb5e 100644 --- a/src/event.c +++ b/src/event.c @@ -383,9 +383,6 @@ static void _handleEvent(Service_T S, Event_T E) { S->error &= ~E->id; _handleAction(E, E->action->succeeded); } - - /* Possible event state change was handled so we will reset the flag. */ - E->state_changed = false; } -- 2.10.5