From 295fec2b46be2ee492b1fbe7a51d95de8ddce5ba Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 1 Oct 2009 16:18:33 -0700 Subject: [PATCH] NULL is not a valid event context. Jeremy. --- lib/tevent/tevent_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index d3325b67ac0..ab170a66cf7 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -92,7 +92,7 @@ static void tevent_common_signal_handler(int signum) /* Write to each unique event context. */ for (sl = sig_state->sig_handlers[signum]; sl; sl = sl->next) { - if (sl->se->event_ctx != ev) { + if (sl->se->event_ctx && sl->se->event_ctx != ev) { ev = sl->se->event_ctx; /* doesn't matter if this pipe overflows */ res = write(ev->pipe_fds[1], &c, 1);