From 2a68f5d4dde64bba2a10b47fee975b1443629a2a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 12 Feb 2014 10:48:52 +0100 Subject: 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 Reviewed-by: Guenther Deschner --- source4/librpc/rpc/dcerpc_connect.c | 26 -------------------------- 1 file changed, 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, -- cgit