From d60a1b4bb03b8c7a1186b031004fca7926b3e857 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 12:29:57 +0200 Subject: s3:smbcacls: pass down NULL instead of a zero sockaddr_storage metze --- source3/utils/smbcacls.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 208f4e0c64..4a7c6a6f13 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -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(), -- cgit