summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index cc5ff49254..f86b2b5077 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -245,16 +245,16 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
cli->conn.fd = fd;
- ss_length = sizeof(cli->src_ss);
+ ss_length = sizeof(cli->conn.local_ss);
ret = getsockname(fd,
- (struct sockaddr *)(void *)&cli->src_ss,
+ (struct sockaddr *)(void *)&cli->conn.local_ss,
&ss_length);
if (ret == -1) {
goto error;
}
- ss_length = sizeof(cli->dest_ss);
+ ss_length = sizeof(cli->conn.remote_ss);
ret = getpeername(fd,
- (struct sockaddr *)(void *)&cli->dest_ss,
+ (struct sockaddr *)(void *)&cli->conn.remote_ss,
&ss_length);
if (ret == -1) {
goto error;
@@ -368,12 +368,12 @@ void cli_sockopt(struct cli_state *cli, const char *options)
const struct sockaddr_storage *cli_state_local_sockaddr(struct cli_state *cli)
{
- return &cli->src_ss;
+ return &cli->conn.local_ss;
}
const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli)
{
- return &cli->dest_ss;
+ return &cli->conn.remote_ss;
}
uint16_t cli_state_get_vc_num(struct cli_state *cli)