From 1cf9521b2de9a6053c658329d54fe178be94de19 Mon Sep 17 00:00:00 2001 From: Matthew Chapman Date: Mon, 1 Feb 1999 05:25:54 +0000 Subject: [PATCH] Must set password length to 24 after we encrypt a password. (This used to be commit af83778abc5fae0df53ed1874181e33bc8de8d94) --- source3/libsmb/clientgen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index a43731ffcc1..d40c95b9c1c 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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 */ -- 2.34.1