diff options
author | Tim Potter <tpot@samba.org> | 1999-07-09 03:55:15 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-07-09 03:55:15 +0000 |
commit | 6919a92aee585d1d64b89ec359d038e5a6fa9b7e (patch) | |
tree | 06e9da1b67aa650a1fbb608c5dbedaf2371004fe /source3 | |
parent | 59bd1de1a56870490d48c6fcf44b53f88ab22108 (diff) | |
download | samba-6919a92aee585d1d64b89ec359d038e5a6fa9b7e.tar.gz samba-6919a92aee585d1d64b89ec359d038e5a6fa9b7e.tar.bz2 samba-6919a92aee585d1d64b89ec359d038e5a6fa9b7e.zip |
When making anonymous connections, must pass pointers to real nt
password and password length variables not constants.
(This used to be commit 236022071f2f6df0c583fd88d9802d9b3ea6f73e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 10 |
1 files changed, 5 insertions, 5 deletions
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")); |