diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-05-24 05:14:16 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-05-24 05:14:16 +0000 |
commit | c205b18bd6b9b69200ff3db55f2c641631d4ab40 (patch) | |
tree | 70a44cf24de91798adf24c1097f7740aed7782ef /source/utils | |
parent | 3897cf5e048f50be91ae434f636affc6d539d0d1 (diff) | |
download | samba-c205b18bd6b9b69200ff3db55f2c641631d4ab40.tar.gz samba-c205b18bd6b9b69200ff3db55f2c641631d4ab40.tar.xz samba-c205b18bd6b9b69200ff3db55f2c641631d4ab40.zip |
Remove the password length paramater from cli_full_connection - it really
didn't make any sense, and its was always just strlen(password) anyway.
This fixes it to be strlen(password)+1
Andrew Bartlett
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/net.c | 4 | ||||
-rw-r--r-- | source/utils/smbcacls.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/utils/net.c b/source/utils/net.c index 0450d9519d4..fc5c6b90d54 100644 --- a/source/utils/net.c +++ b/source/utils/net.c @@ -119,7 +119,7 @@ NTSTATUS connect_to_ipc(struct cli_state **c, struct in_addr *server_ip, server_ip, opt_port, "IPC$", "IPC", opt_user_name, opt_workgroup, - opt_password, strlen(opt_password)); + opt_password); if (NT_STATUS_IS_OK(nt_status)) { return nt_status; @@ -149,7 +149,7 @@ NTSTATUS connect_to_ipc_anonymous(struct cli_state **c, server_ip, opt_port, "IPC$", "IPC", "", "", - "", 0); + ""); if (NT_STATUS_IS_OK(nt_status)) { return nt_status; diff --git a/source/utils/smbcacls.c b/source/utils/smbcacls.c index 62ab6357b41..7d0dd579fb1 100644 --- a/source/utils/smbcacls.c +++ b/source/utils/smbcacls.c @@ -722,7 +722,7 @@ static struct cli_state *connect_one(char *share) &ip, 0, share, "?????", username, global_myworkgroup, - password, strlen(password)))) { + password))) { return c; } else { return NULL; |