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 | 9c3d5d6fd0dd9e2e62a33d0822a72d5209fe3ffb (patch) | |
tree | 573cb8949102074a22f33b4c2706f7947348278e /source3/rpcclient | |
parent | 40669777a5f74617fdd80dea3ff5a45a9e9a1aa4 (diff) | |
download | samba-9c3d5d6fd0dd9e2e62a33d0822a72d5209fe3ffb.tar.gz samba-9c3d5d6fd0dd9e2e62a33d0822a72d5209fe3ffb.tar.xz samba-9c3d5d6fd0dd9e2e62a33d0822a72d5209fe3ffb.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
(This used to be commit c205b18bd6b9b69200ff3db55f2c641631d4ab40)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/samsync.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 29b99165d3..1e2b42233f 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -757,7 +757,7 @@ static void usage(void) &server_ip, 0, "IPC$", "IPC", username, domain, - password, strlen(password)); + password); if (!NT_STATUS_IS_OK(nt_status)) { DEBUG(1,("Cannot connect to server. Error was %s\n", nt_errstr(nt_status))); diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c index 0b30798070..be5bc874be 100644 --- a/source3/rpcclient/samsync.c +++ b/source3/rpcclient/samsync.c @@ -428,7 +428,7 @@ static struct cli_state *init_connection(struct cli_state **cli, dest_ip, 0, "IPC$", "IPC", username, domain, - password, strlen(password)))) { + password))) { return *cli; } else { return NULL; |