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

s3:libsmb: make use of get_cmdline_auth_info_* helper functions in get_ipc_connect()

We should avoid to dereference struct user_auth_info.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-10-21 10:17:59 +02:00 committed by Jeremy Allison
parent 5cb394a288
commit 87c3ff0f3b

View File

@ -3673,14 +3673,14 @@ struct cli_state *get_ipc_connect(char *server,
NTSTATUS nt_status;
uint32_t flags = CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK;
if (user_info->use_kerberos) {
if (get_cmdline_auth_info_use_kerberos(user_info)) {
flags |= CLI_FULL_CONNECTION_USE_KERBEROS;
}
nt_status = cli_full_connection(&cli, NULL, server, server_ss, 0, "IPC$", "IPC",
user_info->username ? user_info->username : "",
get_cmdline_auth_info_username(user_info),
lp_workgroup(),
user_info->password ? user_info->password : "",
get_cmdline_auth_info_password(user_info),
flags,
SMB_SIGNING_DEFAULT);