s3:messages: check tevent_fd_get_flags() == 0 before using stale event context pointer
authorRalph Boehme <slow@samba.org>
Tue, 27 Mar 2018 13:27:32 +0000 (15:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Apr 2018 09:13:17 +0000 (11:13 +0200)
commitdfb712a03c2bd36641506ae9cfce1a0820e1a329
tree13ed1cbfcdb24609778cc64a0d5507f76440a035
parentfdcc1622082eaea3fc03c0346a56afbbff88e6d1
s3:messages: check tevent_fd_get_flags() == 0 before using stale event context pointer

If the event context got deleted, tevent_fd_get_flags() will return 0
for the stale fde.  In that case we should not use fde_ev->ev anymore.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/lib/messages_ctdb.c
source3/lib/messages_dgm.c