From 8d4c7326212f23d2a255def7f7e9c992eb752911 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Oct 1998 15:55:18 +0000 Subject: fixed a authentication problem with non-encrypting servers (This used to be commit 06f1af12c37fc759e7315366dd4e82f4e96b042d) --- source3/libsmb/clientgen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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; } } -- cgit