tevent_poll: Fix a crash in the poll backend
authorVolker Lendecke <vl@samba.org>
Thu, 31 Jan 2013 13:33:15 +0000 (14:33 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 3 Feb 2013 03:52:09 +0000 (19:52 -0800)
commitd944e2cae15cf1fc2e7601fecd213dec17e5132a
tree0e4c64e47f48a05696ebbf772d17331125cc5048
parent499008021051e5b01e4c1c151403b18a9dcbcf24
tevent_poll: Fix a crash in the poll backend

If tevent_add_fd is immediately followed by tevent_fd_set_flags, the poll
backend crashes. This was introduced when the poll backend was prepared
for the multi-threaded python extension.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent_poll.c