From 8f93068cf8fc3d282e0975cc5cbdcd2098b10d52 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Mar 2012 12:10:04 +0100 Subject: s3: Add smb_request_done This is used to enable async chained command sequences. A synchronous reply_xxx command does not need to take are anymore about and_x chaining. The async commands (pipe r/w at this moment) must do so however. When finished, they must inform the main chain engine that they are finished with a smb_request_done call. Autobuild-User: Volker Lendecke Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104 --- source3/smbd/pipes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/pipes.c') diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index c21b635bfb..c3a5cb3c03 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -367,7 +367,7 @@ static void pipe_write_andx_done(struct tevent_req *subreq) * We must free here as the ownership of req was * moved to the connection struct in reply_pipe_write_and_X(). */ - TALLOC_FREE(req); + smb_request_done(req); } /**************************************************************************** @@ -493,5 +493,5 @@ static void pipe_read_andx_done(struct tevent_req *subreq) * We must free here as the ownership of req was * moved to the connection struct in reply_pipe_read_and_X(). */ - TALLOC_FREE(req); + smb_request_done(req); } -- cgit