From 6d4f9fc251fabc2951356db968e72b65ebf8c027 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 16:53:51 +0200 Subject: s3:libsmb: move cli_state->desthost to cli_state->conn.remote_name metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Fri Jul 22 18:17:41 CEST 2011 on sn-devel-104 --- source3/libsmb/clientgen.c | 8 ++++---- source3/libsmb/proto.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 2b254294ac..559be9265b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -163,7 +163,7 @@ NTSTATUS cli_init_creds(struct cli_state *cli, const char *username, const char struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, int fd, - const char *desthost, + const char *remote_name, int signing_state) { struct cli_state *cli = NULL; @@ -238,8 +238,8 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, } cli->conn.pending = NULL; - cli->desthost = talloc_strdup(cli, desthost); - if (cli->desthost == NULL) { + cli->conn.remote_name = talloc_strdup(cli, remote_name); + if (cli->conn.remote_name == NULL) { goto error; } @@ -378,7 +378,7 @@ const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli) const char *cli_state_remote_name(struct cli_state *cli) { - return cli->desthost; + return cli->conn.remote_name; } uint16_t cli_state_get_vc_num(struct cli_state *cli) diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 99446dcee2..7924091935 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -161,7 +161,7 @@ NTSTATUS cli_set_password(struct cli_state *cli, const char *password); NTSTATUS cli_init_creds(struct cli_state *cli, const char *username, const char *domain, const char *password); struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, int fd, - const char *desthost, + const char *remote_name, int signing_state); bool cli_state_encryption_on(struct cli_state *cli); void cli_nt_pipes_close(struct cli_state *cli); -- cgit