From 6919a92aee585d1d64b89ec359d038e5a6fa9b7e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 9 Jul 1999 03:55:15 +0000 Subject: When making anonymous connections, must pass pointers to real nt password and password length variables not constants. (This used to be commit 236022071f2f6df0c583fd88d9802d9b3ea6f73e) --- source3/libsmb/clientgen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 78c09d53e9..2d19473feb 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -2794,14 +2794,14 @@ BOOL cli_establish_connection(struct cli_state *cli, if (cli->pwd.cleartext || cli->pwd.null_pwd) { - fstring passwd; - int pass_len; + fstring passwd, ntpasswd; + int pass_len, ntpass_len; if (cli->pwd.null_pwd) { /* attempt null session */ - passwd[0] = 0; - pass_len = 1; + passwd[0] = ntpasswd[0] = 0; + pass_len = ntpass_len = 1; } else { @@ -2813,7 +2813,7 @@ BOOL cli_establish_connection(struct cli_state *cli, /* attempt clear-text session */ if (!cli_session_setup(cli, cli->user_name, passwd, pass_len, - NULL, 0, + ntpasswd, ntpass_len, cli->domain)) { DEBUG(1,("failed session setup\n")); -- cgit