diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-09-28 19:11:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-09-29 11:52:43 +0200 |
commit | 6fbb1b5fd55897def70b9603423f23ed8335428e (patch) | |
tree | 8d731da3348388d87fedfa3c0c0c8573da067f9b /source3/libsmb | |
parent | 4e1306c46a0ab00c2e1a5d78a2f3a9bd9bb45cbe (diff) | |
download | samba-6fbb1b5fd55897def70b9603423f23ed8335428e.tar.gz samba-6fbb1b5fd55897def70b9603423f23ed8335428e.tar.bz2 samba-6fbb1b5fd55897def70b9603423f23ed8335428e.zip |
s3:libsmb: use smbXcli_conn_remote_name() in smb2_tcon_send()
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 29 11:52:43 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smb2cli_tcon.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c index ca44311f5c..dc18544bff 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); } |