diff options
author | Jeremy Allison <jra@samba.org> | 2009-10-01 16:18:33 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-10-01 16:18:33 -0700 |
commit | 295fec2b46be2ee492b1fbe7a51d95de8ddce5ba (patch) | |
tree | c556242fe211c3c1fb68951d4b62eab99a1c410c | |
parent | b2bcfaaeed44af3a60667894ce0d7647f0382a26 (diff) | |
download | samba-295fec2b46be2ee492b1fbe7a51d95de8ddce5ba.tar.gz samba-295fec2b46be2ee492b1fbe7a51d95de8ddce5ba.tar.bz2 samba-295fec2b46be2ee492b1fbe7a51d95de8ddce5ba.zip |
NULL is not a valid event context.
Jeremy.
-rw-r--r-- | lib/tevent/tevent_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index d3325b67ac..ab170a66cf 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); |