summaryrefslogtreecommitdiff
path: root/source3/smbd/pipes.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-23 09:53:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:54 -0500
commit47cdfc0413886780f51fb98b7fca18d7c83b7c23 (patch)
tree1704b9df11828343cb3f85bc38d8fbeb94c4c877 /source3/smbd/pipes.c
parentcc6a41017c577742af73b4bc60993d8d415ea580 (diff)
downloadsamba-47cdfc0413886780f51fb98b7fca18d7c83b7c23.tar.gz
samba-47cdfc0413886780f51fb98b7fca18d7c83b7c23.tar.bz2
samba-47cdfc0413886780f51fb98b7fca18d7c83b7c23.zip
r23998: Convert reply_close to the new API
(This used to be commit dbf74cb747d34dac571d85d6bae9398558086456)
Diffstat (limited to 'source3/smbd/pipes.c')
-rw-r--r--source3/smbd/pipes.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index a6cdc3a989..cb1461478a 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -285,22 +285,24 @@ int reply_pipe_read_and_X(char *inbuf,char *outbuf,int length,int bufsize)
Reply to a close.
****************************************************************************/
-int reply_pipe_close(connection_struct *conn, char *inbuf,char *outbuf)
+void reply_pipe_close(connection_struct *conn, struct smb_request *req)
{
- smb_np_struct *p = get_rpc_pipe_p(inbuf,smb_vwv0);
- int outsize = set_message(inbuf,outbuf,0,0,True);
+ smb_np_struct *p = get_rpc_pipe_p((char *)req->inbuf,smb_vwv0);
if (!p) {
- return(ERROR_DOS(ERRDOS,ERRbadfid));
+ reply_doserror(req, ERRDOS, ERRbadfid);
+ return;
}
DEBUG(5,("reply_pipe_close: pnum:%x\n", p->pnum));
if (!close_rpc_pipe_hnd(p)) {
- return ERROR_DOS(ERRDOS,ERRbadfid);
+ reply_doserror(req, ERRDOS, ERRbadfid);
+ return;
}
/* TODO: REMOVE PIPE FROM DB */
- return(outsize);
+ reply_outbuf(req, 0, 0);
+ return;
}