diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-04 09:39:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-04 09:39:17 +0100 |
commit | e058e51d63d4a476a1b49941cd8a8611d9164eba (patch) | |
tree | 1410a567b024a0cb115f65c09e8137388544c80b /lib/tevent | |
parent | 47d532fa685d46752650225c807f579ce658b323 (diff) | |
download | samba-e058e51d63d4a476a1b49941cd8a8611d9164eba.tar.gz samba-e058e51d63d4a476a1b49941cd8a8611d9164eba.tar.xz samba-e058e51d63d4a476a1b49941cd8a8611d9164eba.zip |
tevent: completely initialize tevent_fd structs
This fixes crash bugs... I forgot to commit and squash
this to commit e45ed828d042acca09cb1ed5b6dd7a24eb5e7ffd
metze
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_aio.c | 1 | ||||
-rw-r--r-- | lib/tevent/tevent_epoll.c | 1 | ||||
-rw-r--r-- | lib/tevent/tevent_select.c | 1 | ||||
-rw-r--r-- | lib/tevent/tevent_standard.c | 3 |
4 files changed, 6 insertions, 0 deletions
diff --git a/lib/tevent/tevent_aio.c b/lib/tevent/tevent_aio.c index f4ed6d8a5ae..b15dab3aaf3 100644 --- a/lib/tevent/tevent_aio.c +++ b/lib/tevent/tevent_aio.c @@ -431,6 +431,7 @@ static struct tevent_fd *aio_event_add_fd(struct tevent_context *ev, TALLOC_CTX fde->fd = fd; fde->flags = flags; fde->handler = handler; + fde->close_fn = NULL; fde->private_data = private_data; fde->handler_name = handler_name; fde->location = location; diff --git a/lib/tevent/tevent_epoll.c b/lib/tevent/tevent_epoll.c index 023041981f4..38357743499 100644 --- a/lib/tevent/tevent_epoll.c +++ b/lib/tevent/tevent_epoll.c @@ -389,6 +389,7 @@ static struct tevent_fd *epoll_event_add_fd(struct tevent_context *ev, TALLOC_CT fde->fd = fd; fde->flags = flags; fde->handler = handler; + fde->close_fn = NULL; fde->private_data = private_data; fde->handler_name = handler_name; fde->location = location; diff --git a/lib/tevent/tevent_select.c b/lib/tevent/tevent_select.c index d94e473db81..cf4453f64fa 100644 --- a/lib/tevent/tevent_select.c +++ b/lib/tevent/tevent_select.c @@ -133,6 +133,7 @@ static struct tevent_fd *select_event_add_fd(struct tevent_context *ev, TALLOC_C fde->fd = fd; fde->flags = flags; fde->handler = handler; + fde->close_fn = NULL; fde->private_data = private_data; fde->handler_name = handler_name; fde->location = location; diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 145f510533b..2a292a4c396 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -423,7 +423,10 @@ static struct tevent_fd *std_event_add_fd(struct tevent_context *ev, TALLOC_CTX fde->fd = fd; fde->flags = flags; fde->handler = handler; + fde->close_fn = NULL; fde->private_data = private_data; + fde->handler_name = handler_name; + fde->location = location; fde->additional_flags = 0; fde->additional_data = NULL; |