The branch, master has been updated
       via  e058e51d63d4a476a1b49941cd8a8611d9164eba (commit)
      from  47d532fa685d46752650225c807f579ce658b323 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e058e51d63d4a476a1b49941cd8a8611d9164eba
Author: Stefan Metzmacher <[email protected]>
Date:   Sun Jan 4 09:39:17 2009 +0100

    tevent: completely initialize tevent_fd structs
    
    This fixes crash bugs... I forgot to commit and squash
    this to commit e45ed828d042acca09cb1ed5b6dd7a24eb5e7ffd
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 lib/tevent/tevent_aio.c      |    1 +
 lib/tevent/tevent_epoll.c    |    1 +
 lib/tevent/tevent_select.c   |    1 +
 lib/tevent/tevent_standard.c |    3 +++
 4 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tevent/tevent_aio.c b/lib/tevent/tevent_aio.c
index f4ed6d8..b15dab3 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 0230419..3835774 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 d94e473..cf4453f 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 145f510..2a292a4 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;
 


-- 
Samba Shared Repository

Reply via email to