From 9e0bd9be01a6337d75d54382b56dfe6a88bda47b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 28 Sep 2002 12:14:17 +0000 Subject: Thanks to abartlet I looked at that function a bit closer. What did the first cli_push_string do? I suspect that it's a leftover from times when the password length was needed at some point. Volker (This used to be commit df906c156aea46524dedc28ee54f4e87711c7160) --- source3/libsmb/cliconnect.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index ebadafd5f0..695c6506b5 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -184,10 +184,7 @@ static BOOL cli_session_setup_plaintext(struct cli_state *cli, char *user, char *pass, char *workgroup) { uint32 capabilities = cli_session_setup_capabilities(cli); - fstring pword; - int passlen; char *p; - int push_flags = STR_TERMINATE; if (capabilities & CAP_UNICODE) @@ -195,8 +192,6 @@ static BOOL cli_session_setup_plaintext(struct cli_state *cli, char *user, else push_flags |= STR_ASCII; - passlen = clistr_push(cli, pword, pass, sizeof(pword), push_flags); - set_message(cli->outbuf,13,0,True); SCVAL(cli->outbuf,smb_com,SMBsesssetupX); cli_setup_packet(cli); -- cgit