mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:smbcacls: pass down NULL instead of a zero sockaddr_storage
metze
This commit is contained in:
parent
814449ab01
commit
d60a1b4bb0
@ -1132,12 +1132,9 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
|
||||
const char *server, const char *share)
|
||||
{
|
||||
struct cli_state *c = NULL;
|
||||
struct sockaddr_storage ss;
|
||||
NTSTATUS nt_status;
|
||||
uint32_t flags = 0;
|
||||
|
||||
zero_sockaddr(&ss);
|
||||
|
||||
if (get_cmdline_auth_info_use_kerberos(auth_info)) {
|
||||
flags |= CLI_FULL_CONNECTION_USE_KERBEROS |
|
||||
CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS;
|
||||
@ -1151,7 +1148,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
|
||||
set_cmdline_auth_info_getpass(auth_info);
|
||||
|
||||
nt_status = cli_full_connection(&c, lp_netbios_name(), server,
|
||||
&ss, 0,
|
||||
NULL, 0,
|
||||
share, "?????",
|
||||
get_cmdline_auth_info_username(auth_info),
|
||||
lp_workgroup(),
|
||||
|
Loading…
Reference in New Issue
Block a user