1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:libsmb: only pass const sockaddr_storage to cli_full_connection()

No direct or indirect caller needs this to be set.

metze
This commit is contained in:
Stefan Metzmacher 2011-07-22 13:03:19 +02:00
parent 552164c7bc
commit 5c7749ac24
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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,