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:
parent
552164c7bc
commit
5c7749ac24
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user