summaryrefslogtreecommitdiff
path: root/source3/smbd/pipes.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-30 21:51:15 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-30 21:51:15 +0000
commit55e2dc7c6f4378adfdcbd166b2680096a3e4a5a4 (patch)
tree91087a9b41b3935d5b537c7aaab5a4f2fbd505c1 /source3/smbd/pipes.c
parent3e0fb1883cb8100d2cb696eb61fbc2798cb9da49 (diff)
downloadsamba-55e2dc7c6f4378adfdcbd166b2680096a3e4a5a4.tar.gz
samba-55e2dc7c6f4378adfdcbd166b2680096a3e4a5a4.tar.bz2
samba-55e2dc7c6f4378adfdcbd166b2680096a3e4a5a4.zip
storing pipe name state (from set named pipe handle state call) in the
pipes array. (This used to be commit 5335d5cdc4659f4676958f0399e2de29a117c133)
Diffstat (limited to 'source3/smbd/pipes.c')
-rw-r--r--source3/smbd/pipes.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index ff93041fbc..4a2e185cb4 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -148,21 +148,18 @@ int reply_pipe_close(char *inbuf,char *outbuf)
/****************************************************************************
api_LsarpcSNPHS
- SetNamedPipeHandleState on \PIPE\lsarpc. We can't really do much here,
- so just blithely return True. This is really only for NT domain stuff,
- we we're only handling that - don't assume Samba now does complete
- named pipe handling.
+ SetNamedPipeHandleState on \PIPE\lsarpc.
****************************************************************************/
-BOOL api_LsarpcSNPHS(int cnum,int uid, char *param,char *data,
- int mdrcnt,int mprcnt,
- char **rdata,char **rparam,
- int *rdata_len,int *rparam_len)
+BOOL api_LsarpcSNPHS(int pnum, int cnum, char *param)
{
uint16 id;
+ if (!param) return False;
+
id = param[0] + (param[1] << 8);
DEBUG(4,("lsarpc SetNamedPipeHandleState to code %x\n",id));
- return(True);
+
+ return set_rpc_pipe_hnd_state(pnum, cnum, id);
}