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 | 236022071f2f6df0c583fd88d9802d9b3ea6f73e (patch) | |
tree | 0a82793bf51501469390f2dea00dac85bd49cf32 /source/libsmb/clientgen.c | |
parent | 26d66071fbac2c46445153c214bb13d587a67b49 (diff) | |
download | samba-236022071f2f6df0c583fd88d9802d9b3ea6f73e.tar.gz samba-236022071f2f6df0c583fd88d9802d9b3ea6f73e.tar.xz samba-236022071f2f6df0c583fd88d9802d9b3ea6f73e.zip |
When making anonymous connections, must pass pointers to real nt
password and password length variables not constants.
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r-- | source/libsmb/clientgen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 78c09d53e90..2d19473feb0 100644 --- a/source/libsmb/clientgen.c +++ b/source/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")); |