diff options
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 87a9073a73..ccb7f126ea 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -456,6 +456,10 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p, !strncasecmp(pipe_name, "\\pipe\\", 6)) { pipe_name+=6; } + + if (pipe_name[0] != '\\') { + pipe_name = talloc_asprintf(mem_ctx, "\\%s", pipe_name); + } if (!username || !username[0]) { status = smbcli_full_connection(NULL, &cli, lp_netbios_name(), |