Must set password length to 24 after we encrypt a password.
authorMatthew Chapman <matty@samba.org>
Mon, 1 Feb 1999 05:25:54 +0000 (05:25 +0000)
committerMatthew Chapman <matty@samba.org>
Mon, 1 Feb 1999 05:25:54 +0000 (05:25 +0000)
(This used to be commit af83778abc5fae0df53ed1874181e33bc8de8d94)

source3/libsmb/clientgen.c

index a43731ffcc17bd086f619c68660bd9c2c48ef8ba..d40c95b9c1c04244c728eb74c1a797063f9814cf 100644 (file)
@@ -746,6 +746,8 @@ BOOL cli_session_setup(struct cli_state *cli,
                uchar *key = (uchar *)cli->cryptkey;
                SMBencrypt  ((uchar *)pass  , key,(uchar *)pword  );
                SMBNTencrypt((uchar *)ntpass, key,(uchar *)ntpword);
                uchar *key = (uchar *)cli->cryptkey;
                SMBencrypt  ((uchar *)pass  , key,(uchar *)pword  );
                SMBNTencrypt((uchar *)ntpass, key,(uchar *)ntpword);
+               passlen = 24;
+               ntpasslen = 24;
        }
 
        /* send a session setup command */
        }
 
        /* send a session setup command */