diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-03 15:55:18 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-03 15:55:18 +0000 |
commit | 8d4c7326212f23d2a255def7f7e9c992eb752911 (patch) | |
tree | 995bbb97cc42873848d5d9874dc4a368f599ec44 /source3 | |
parent | 8bca34de11a934217619146b5b7c8f463e793f3b (diff) | |
download | samba-8d4c7326212f23d2a255def7f7e9c992eb752911.tar.gz samba-8d4c7326212f23d2a255def7f7e9c992eb752911.tar.bz2 samba-8d4c7326212f23d2a255def7f7e9c992eb752911.zip |
fixed a authentication problem with non-encrypting servers
(This used to be commit 06f1af12c37fc759e7315366dd4e82f4e96b042d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 6132114ac6..dc60b6951c 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -627,8 +627,9 @@ BOOL cli_session_setup(struct cli_state *cli, SMBencrypt((uchar *)pass,(uchar *)cli->cryptkey,(uchar *)pword); SMBNTencrypt((uchar *)ntpass,(uchar *)cli->cryptkey,(uchar *)ntpword); } else { - memcpy(pword, pass, passlen); - memcpy(ntpword, ntpass, ntpasslen); + fstrcpy(pword, pass); + fstrcpy(ntpword, ""); + ntpasslen = 0; } } |