summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-25 13:25:31 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-25 13:25:31 +0000
commit9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7 (patch)
tree398bc95ceec51ff3a036b6f8d03548fb9bb07626 /source
parentdf00e5dceae91f6ffca77704c4517b91fd796d32 (diff)
downloadsamba-9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7.tar.gz
samba-9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7.tar.xz
samba-9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7.zip
we need to pull passwords in client charset for crypto to work
Diffstat (limited to 'source')
-rw-r--r--source/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index e32ea3e8e16..324734a79d9 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -725,7 +725,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
return(ERROR(ERRDOS,ERRbuftoosmall));
}
- srvstr_pull(inbuf, smb_apasswd, smb_buf(inbuf), sizeof(smb_apasswd), smb_apasslen, 0);
+ memcpy(smb_apasswd,smb_buf(inbuf),smb_apasslen);
srvstr_pull(inbuf, user, smb_buf(inbuf)+smb_apasslen, sizeof(user), -1, STR_TERMINATE);
if (!doencrypt && (lp_security() != SEC_SERVER)) {