summaryrefslogtreecommitdiff
path: root/source3/smbd/pipes.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-04 12:10:04 +0100
committerVolker Lendecke <vl@samba.org>2012-03-10 17:14:05 +0100
commit8f93068cf8fc3d282e0975cc5cbdcd2098b10d52 (patch)
treef4498f43e3286e8af9df20bca60f04d4c78d03ff /source3/smbd/pipes.c
parent2c1caf5fcb002f5a4e049fcb812c98c435d0f2c9 (diff)
downloadsamba-8f93068cf8fc3d282e0975cc5cbdcd2098b10d52.tar.gz
samba-8f93068cf8fc3d282e0975cc5cbdcd2098b10d52.tar.bz2
samba-8f93068cf8fc3d282e0975cc5cbdcd2098b10d52.zip
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 <vl@samba.org> Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/pipes.c')
-rw-r--r--source3/smbd/pipes.c4
1 files changed, 2 insertions, 2 deletions
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);
}