From 6fbb1b5fd55897def70b9603423f23ed8335428e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 28 Sep 2012 19:11:14 +0200 Subject: [PATCH] s3:libsmb: use smbXcli_conn_remote_name() in smb2_tcon_send() metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Sat Sep 29 11:52:43 CEST 2012 on sn-devel-104 --- source3/libsmb/smb2cli_tcon.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c index ca44311f5c4..dc18544bfff 100644 --- a/source3/libsmb/smb2cli_tcon.c +++ b/source3/libsmb/smb2cli_tcon.c @@ -41,7 +41,6 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx, struct tevent_req *req, *subreq; struct smb2cli_tcon_state *state; uint8_t *fixed; - char srv_ip[INET6_ADDRSTRLEN]; const char *tcon_share; uint8_t *dyn; size_t dyn_len; @@ -52,10 +51,9 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx, } state->cli = cli; - print_sockaddr(srv_ip, sizeof(srv_ip), smbXcli_conn_remote_sockaddr(cli->conn)); - tcon_share = talloc_asprintf(state, "\\\\%s\\%s", - srv_ip, share); + smbXcli_conn_remote_name(cli->conn), + share); if (tevent_req_nomem(tcon_share, req)) { return tevent_req_post(req, ev); } -- 2.11.4.GIT