]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
we need to pull passwords in client charset for crypto to work
authorAndrew Tridgell <tridge@samba.org>
Wed, 25 Jul 2001 13:25:31 +0000 (13:25 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 25 Jul 2001 13:25:31 +0000 (13:25 +0000)
source/smbd/reply.c

index e32ea3e8e166b016810ca79a5c51d947466f6735..324734a79d914d7c110848402acbfbf9e82c52dd 100644 (file)
@@ -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)) {