From 2c081d2c47452acff3115637bbd16f780e23b76a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 18 Oct 2004 16:07:08 +0000 Subject: r3046: \\PIPE\\ is internal (not actually included on the wire) (This used to be commit 7771b5d8fa3db759487474eb7172df45bb3221ae) --- source4/librpc/rpc/dcerpc_util.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source4/librpc') diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index a82f30f3e5..87a9073a73 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -452,14 +452,11 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p, pipe_name = binding->options[0]; } - if (!strncasecmp(pipe_name, "/pipe/", 6)) { + if (!strncasecmp(pipe_name, "/pipe/", 6) || + !strncasecmp(pipe_name, "\\pipe\\", 6)) { pipe_name+=6; } - if (strncasecmp(pipe_name, "\\pipe\\", 6)) { - pipe_name = talloc_asprintf(mem_ctx, "\\pipe\\%s", pipe_name); - } - if (!username || !username[0]) { status = smbcli_full_connection(NULL, &cli, lp_netbios_name(), binding->host, NULL, -- cgit