Must set password length to 24 after we encrypt a password.
[samba.git] / 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);
+               passlen = 24;
+               ntpasslen = 24;
        }
 
        /* send a session setup command */