summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 15:55:18 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 15:55:18 +0000
commit8d4c7326212f23d2a255def7f7e9c992eb752911 (patch)
tree995bbb97cc42873848d5d9874dc4a368f599ec44
parent8bca34de11a934217619146b5b7c8f463e793f3b (diff)
downloadsamba-8d4c7326212f23d2a255def7f7e9c992eb752911.tar.gz
samba-8d4c7326212f23d2a255def7f7e9c992eb752911.tar.bz2
samba-8d4c7326212f23d2a255def7f7e9c992eb752911.zip
fixed a authentication problem with non-encrypting servers
(This used to be commit 06f1af12c37fc759e7315366dd4e82f4e96b042d)
-rw-r--r--source3/libsmb/clientgen.c5
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;
}
}