summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 12:31:05 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:08 +0200
commit552164c7bc74495c636a2d034aed2aa3e60b45aa (patch)
tree71f6cc3631115a34d8c46aabba238f54ae4984da /source3/utils
parentd60a1b4bb03b8c7a1186b031004fca7926b3e857 (diff)
downloadsamba-552164c7bc74495c636a2d034aed2aa3e60b45aa.tar.gz
samba-552164c7bc74495c636a2d034aed2aa3e60b45aa.tar.bz2
samba-552164c7bc74495c636a2d034aed2aa3e60b45aa.zip
s3:smbcquotas: pass down NULL instead of a zero sockaddr_storage
metze
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcquotas.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index 9858e0a3a8..2154cd17df 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -504,12 +504,9 @@ static int do_quota(struct cli_state *cli,
static struct cli_state *connect_one(const char *share)
{
struct cli_state *c;
- struct sockaddr_storage ss;
NTSTATUS nt_status;
uint32_t flags = 0;
- zero_sockaddr(&ss);
-
if (get_cmdline_auth_info_use_machine_account(smbcquotas_auth_info) &&
!set_cmdline_auth_info_machine_account_creds(smbcquotas_auth_info)) {
return NULL;
@@ -524,7 +521,7 @@ static struct cli_state *connect_one(const char *share)
set_cmdline_auth_info_getpass(smbcquotas_auth_info);
nt_status = cli_full_connection(&c, lp_netbios_name(), server,
- &ss, 0,
+ NULL, 0,
share, "?????",
get_cmdline_auth_info_username(smbcquotas_auth_info),
lp_workgroup(),