summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 638b2e1c55..db30354609 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -749,7 +749,7 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p,
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 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p,
}
}
+
+ 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;
}