summaryrefslogtreecommitdiff
path: root/source3
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
commit1d07607b39c0d3ff345c10893b4e8b1a6c7dabb4 (patch)
treef15245165da5d097d4413644b4a6223a307f9c6c /source3
parent5489bd79b1582253a1e1bb5213cd8ddc7750a65e (diff)
downloadsamba-1d07607b39c0d3ff345c10893b4e8b1a6c7dabb4.tar.gz
samba-1d07607b39c0d3ff345c10893b4e8b1a6c7dabb4.tar.bz2
samba-1d07607b39c0d3ff345c10893b4e8b1a6c7dabb4.zip
we need to pull passwords in client charset for crypto to work
(This used to be commit 9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e32ea3e8e1..324734a79d 100644
--- a/source3/smbd/reply.c
+++ b/source3/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)) {