s3:libsmb: get rid of cli_state_*_sockaddr
[samba.git] / source3 / libsmb / smb2cli_tcon.c
index 8aa2a31296d0a69e0fc390054a0723d182c206cc..c3f8fcc441ed661a4914438663e51d3e9a51b2d2 100644 (file)
@@ -52,7 +52,7 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
        }
        state->cli = cli;
 
-       print_sockaddr(srv_ip, sizeof(srv_ip), cli_state_remote_sockaddr(cli));
+       print_sockaddr(srv_ip, sizeof(srv_ip), smbXcli_conn_remote_sockaddr(cli->conn));
 
        tcon_share = talloc_asprintf(state, "\\\\%s\\%s",
                                     srv_ip, share);