svn commit: samba r3444 - in branches/SAMBA_4_0/source/librpc/rpc: .
jelmer at samba.org
jelmer at samba.org
Mon Nov 1 23:35:17 GMT 2004
Author: jelmer
Date: 2004-11-01 23:35:15 +0000 (Mon, 01 Nov 2004)
New Revision: 3444
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3444
Log:
Don't use random data as endpoint if no default endpoint is known and no
endpoint was specified for ncacn_np.
Modified:
branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2004-11-01 22:48:25 UTC (rev 3443)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2004-11-01 23:35:15 UTC (rev 3444)
@@ -749,7 +749,7 @@
NTSTATUS status;
BOOL retry;
struct smbcli_state *cli;
- const char *pipe_name;
+ const char *pipe_name = NULL;
TALLOC_CTX *mem_ctx = talloc_init("dcerpc_pipe_connect_ncacn_np");
if (!binding->endpoint) {
@@ -773,6 +773,11 @@
}
}
+
+ if (pipe_name == NULL) {
+ DEBUG(0, ("No default named pipe specified for interface with UUID %s\n", pipe_uuid));
+ return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ }
} else {
pipe_name = binding->endpoint;
}
More information about the samba-cvs
mailing list