[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-844-g3b0572b

Volker Lendecke vlendec at samba.org
Sun Apr 5 12:34:40 GMT 2009


The branch, master has been updated
       via  3b0572bf91a527674459427c761d45361e40d3ec (commit)
      from  0421fa90ce2f140da95e51216677834896d77213 (commit)

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


- Log -----------------------------------------------------------------
commit 3b0572bf91a527674459427c761d45361e40d3ec
Author: Volker Lendecke <vl at samba.org>
Date:   Sat Mar 28 19:58:45 2009 +0100

    Fix smbd crash for close_on_completion
    
    handle_trans() can talloc_free "conn" if the client requests
    close_on_completion. "state" is a talloc_child of conn, so it will be gone when
    we later free state->data et al.

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

Summary of changes:
 source3/smbd/ipc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index d39aab4..2d57135 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -754,6 +754,8 @@ void reply_trans(struct smb_request *req)
 		return;
 	}
 
+	talloc_steal(talloc_tos(), state);
+
 	handle_trans(conn, req, state);
 
 	SAFE_FREE(state->data);
@@ -852,6 +854,8 @@ void reply_transs(struct smb_request *req)
 		return;
 	}
 
+	talloc_steal(talloc_tos(), state);
+
 	handle_trans(conn, req, state);
 
 	DLIST_REMOVE(conn->pending_trans, state);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list