summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/smb2cli_tcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index eca2617998..705f8fc99c 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -51,7 +51,7 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
}
state->cli = cli;
- print_sockaddr(srv_ip, sizeof(srv_ip), &cli->dest_ss);
+ print_sockaddr(srv_ip, sizeof(srv_ip), cli_state_remote_sockaddr(cli));
tcon_share = talloc_asprintf(talloc_tos(), "\\\\%s\\%s",
srv_ip, share);