summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 12:29:57 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:08 +0200
commitd60a1b4bb03b8c7a1186b031004fca7926b3e857 (patch)
tree3c04bb38c56b708d427b028c2e4e199b2dc38623 /source3
parent814449ab019e8ffea07a6d4c6609fb3512869cbe (diff)
downloadsamba-d60a1b4bb03b8c7a1186b031004fca7926b3e857.tar.gz
samba-d60a1b4bb03b8c7a1186b031004fca7926b3e857.tar.bz2
samba-d60a1b4bb03b8c7a1186b031004fca7926b3e857.zip
s3:smbcacls: pass down NULL instead of a zero sockaddr_storage
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcacls.c5
1 files changed, 1 insertions, 4 deletions
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(),