summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clientgen.c
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
commit06f1af12c37fc759e7315366dd4e82f4e96b042d (patch)
treee84bdc04c183849b795c9355fde16b4f9a6727ae /source/libsmb/clientgen.c
parent1388a6fe8ccd0b2fec8086feebc785b3a5de78d3 (diff)
downloadsamba-06f1af12c37fc759e7315366dd4e82f4e96b042d.tar.gz
samba-06f1af12c37fc759e7315366dd4e82f4e96b042d.tar.xz
samba-06f1af12c37fc759e7315366dd4e82f4e96b042d.zip
fixed a authentication problem with non-encrypting servers
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 6132114ac67..dc60b6951cf 100644
--- a/source/libsmb/clientgen.c
+++ b/source/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;
}
}