[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Nov 19 16:14:03 MST 2013

The branch, master has been updated
       via  2d91577 smbd: Fix a talloc hierarchy problem in msg_channel
      from  4503bdf netapi: Add support for info level 502 in NetShareAdd.


- Log -----------------------------------------------------------------
commit 2d91577f984bc83c2c87141cfdda87d068060b32
Author: Volker Lendecke <vl at samba.org>
Date:   Thu Nov 14 21:30:49 2013 +0100

    smbd: Fix a talloc hierarchy problem in msg_channel
    When tearing down a watch_send with an open tevent_immediate, we
    talloc_free the msg_channel while the tevent_immediate still references
    it. Don't make the tevent_immediate outlive the msg_channel.
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=10250
    Signed-off-by: Volker Lendecke <vl at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Nov 20 00:13:51 CET 2013 on sn-devel-104


Summary of changes:
 source3/lib/msg_channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Changeset truncated at 500 lines:

diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c
index 537b162..625d07c 100644
--- a/source3/lib/msg_channel.c
+++ b/source3/lib/msg_channel.c
@@ -244,7 +244,7 @@ struct tevent_req *msg_read_send(TALLOC_CTX *mem_ctx,
 	num_msgs = talloc_array_length(channel->msgs);
 	if (num_msgs != 0) {
-		im = tevent_create_immediate(channel->ev);
+		im = tevent_create_immediate(channel);
 		if (tevent_req_nomem(im, req)) {
 			return tevent_req_post(req, ev);

Samba Shared Repository

More information about the samba-cvs mailing list