diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-10-25 11:31:07 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-15 11:00:26 +0100 |
commit | 482d3b35e99ab8c5b911fc3e863c1c35a500f791 (patch) | |
tree | 567fe50af25ce21706ee49e6e026b09c3514b5ce /source3/client | |
parent | d6d8893d56d0f7b6be7e9a8c34d454f4933525d5 (diff) | |
download | samba-482d3b35e99ab8c5b911fc3e863c1c35a500f791.tar.gz |
s3:libsmb: let the callers only pass the password string to cli_session_setup[_send]()
There're no callers which tried to pass raw {lm,nt}_response any more.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 3 | ||||
-rw-r--r-- | source3/client/smbspool.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index b7991e42002..fbb24590a98 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4575,8 +4575,7 @@ static int cmd_logon(void) } nt_status = cli_session_setup(cli, l_username, - l_password, strlen(l_password), - l_password, strlen(l_password), + l_password, lp_workgroup()); if (!NT_STATUS_IS_OK(nt_status)) { d_printf("session setup failed: %s\n", nt_errstr(nt_status)); diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index 9dbb2332743..1e68f090eb8 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -425,8 +425,7 @@ smb_complete_connection(const char *myname, } nt_status = cli_session_setup(cli, username, - password, strlen(password) + 1, - password, strlen(password) + 1, + password, workgroup); if (!NT_STATUS_IS_OK(nt_status)) { fprintf(stderr, "ERROR: Session setup failed: %s\n", nt_errstr(nt_status)); |