summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc_smb.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-18 05:01:10 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-18 05:01:10 +0000
commit9b7b5e5c516155d9606cc92bd22a958a8435ef48 (patch)
treebf528139415fa9b6588f5f35e30ee2e10aa69c3c /source4/librpc/rpc/dcerpc_smb.c
parentc88b0b2bb2c3c41b7e51db4b4dd6c1423af86de8 (diff)
downloadsamba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.tar.gz
samba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.tar.bz2
samba-9b7b5e5c516155d9606cc92bd22a958a8435ef48.zip
use the auto-generated UUID, version and name rather than listing them
in the dcerpc core code (This used to be commit 16ffeb7c80bfe7f1bfbfce8c98066e9ddbca7686)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_smb.c')
-rw-r--r--source4/librpc/rpc/dcerpc_smb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb.c b/source4/librpc/rpc/dcerpc_smb.c
index 0541200015..a5570a4ea9 100644
--- a/source4/librpc/rpc/dcerpc_smb.c
+++ b/source4/librpc/rpc/dcerpc_smb.c
@@ -26,7 +26,10 @@
/*
open a rpc connection to a named pipe
*/
-NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe *p, const char *pipe_name)
+NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe *p,
+ const char *pipe_name,
+ const char *pipe_uuid,
+ uint32 pipe_version)
{
NTSTATUS status;
char *name = NULL;
@@ -73,7 +76,7 @@ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe *p, const char *pipe_name)
p->fnum = io.ntcreatex.out.fnum;
/* bind to the pipe, using the pipe_name as the key */
- status = dcerpc_bind_byname(p, pipe_name);
+ status = dcerpc_bind_byuuid(p, pipe_uuid, pipe_version);
if (!NT_STATUS_IS_OK(status)) {
union smb_close c;