summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/cliconnect.c6
-rw-r--r--source3/libsmb/proto.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 13e6877024..7b6da776f7 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -2947,7 +2947,7 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli,
NTSTATUS cli_full_connection(struct cli_state **output_cli,
const char *my_name,
const char *dest_host,
- struct sockaddr_storage *dest_ss, int port,
+ const struct sockaddr_storage *dest_ss, int port,
const char *service, const char *service_type,
const char *user, const char *domain,
const char *password, int flags,
@@ -2971,10 +2971,6 @@ NTSTATUS cli_full_connection(struct cli_state **output_cli,
return nt_status;
}
- if (dest_ss != NULL) {
- *dest_ss = *cli_state_remote_sockaddr(cli);;
- }
-
cli->use_oplocks = ((flags & CLI_FULL_CONNECTION_OPLOCKS) != 0);
cli->use_level_II_oplocks =
((flags & CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS) != 0);
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 916e161d8e..9e60fe9a94 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -87,7 +87,7 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli,
NTSTATUS cli_full_connection(struct cli_state **output_cli,
const char *my_name,
const char *dest_host,
- struct sockaddr_storage *dest_ss, int port,
+ const struct sockaddr_storage *dest_ss, int port,
const char *service, const char *service_type,
const char *user, const char *domain,
const char *password, int flags,