tevent: Fix a segfault upon the first signal
authorVolker Lendecke <vl@samba.org>
Sat, 29 Aug 2009 07:41:32 +0000 (09:41 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 29 Aug 2009 07:49:08 +0000 (09:49 +0200)
commit23abcd2318c69753aa2a144e1dc0f9cf9efdb705
tree23cc1b28b16184a5861f990bd5af73cb625b2cfa
parentc1b8eb884b71727fa12f4f62e0261c07b47c943a
tevent: Fix a segfault upon the first signal

When the first signal arrives, tevent_common_signal_handler() crashed: "ev" is
initialized to NULL, so the first "write(ev->pipe_fds[1], &c, 1);" dereferences
NULL.

Rusty, Tridge, please check. Also, can you tell me a bit more about the
environment you tested this in? I'd be curious to see where this survived.

Thanks,

Volker
lib/tevent/tevent_signal.c