summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-12 10:48:52 +0100
committerGünther Deschner <gd@samba.org>2014-02-13 11:54:18 +0100
commit2a68f5d4dde64bba2a10b47fee975b1443629a2a (patch)
treef4ab30c7014ca9d73914109580735736e2945641
parent79c76ee54d1ad73fa2e92a189da79df5593737ae (diff)
downloadsamba-2a68f5d4dde64bba2a10b47fee975b1443629a2a.tar.gz
samba-2a68f5d4dde64bba2a10b47fee975b1443629a2a.tar.xz
samba-2a68f5d4dde64bba2a10b47fee975b1443629a2a.zip
s4:librpc/rpc: don't create a ncacn_np: binding
It's up to the caller to store the dcerpc_pipe->binding. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index 3bd6eafabb..c903e25f63 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -101,19 +101,6 @@ static void continue_smb_connect(struct composite_context *ctx)
smb1cli_tcon_set_id(tcon, t->tid);
timeout_msec = t->session->transport->options.request_timeout * 1000;
- /* if we don't have a binding on this pipe yet, then create one */
- if (s->io.pipe->binding == NULL) {
- const char *r = smbXcli_conn_remote_name(conn);
- char *str;
- SMB_ASSERT(r != NULL);
- str = talloc_asprintf(s, "ncacn_np:%s", r);
- if (composite_nomem(str, c)) return;
- c->status = dcerpc_parse_binding(s->io.pipe, str,
- &s->io.pipe->binding);
- talloc_free(str);
- if (!composite_is_ok(c)) return;
- }
-
/* send named pipe open request */
open_ctx = dcerpc_pipe_open_smb_send(s->io.pipe->conn,
conn, session,
@@ -258,19 +245,6 @@ static void continue_smb2_connect(struct tevent_req *subreq)
tcon = t->smbXcli;
timeout_msec = t->session->transport->options.request_timeout * 1000;
- /* if we don't have a binding on this pipe yet, then create one */
- if (s->io.pipe->binding == NULL) {
- const char *r = smbXcli_conn_remote_name(conn);
- char *str;
- SMB_ASSERT(r != NULL);
- str = talloc_asprintf(s, "ncacn_np:%s", r);
- if (composite_nomem(str, c)) return;
- c->status = dcerpc_parse_binding(s->io.pipe, str,
- &s->io.pipe->binding);
- talloc_free(str);
- if (!composite_is_ok(c)) return;
- }
-
/* send named pipe open request */
open_req = dcerpc_pipe_open_smb_send(s->io.pipe->conn,
conn, session,