mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
NULL is not a valid event context.
Jeremy.
This commit is contained in:
parent
b2bcfaaeed
commit
295fec2b46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user