diff options
author | Luke Leighton <lkcl@samba.org> | 1999-07-11 19:26:27 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-07-11 19:26:27 +0000 |
commit | 50429f60566839faf647cd4c36b66903c7b855ab (patch) | |
tree | c9bb9bc59e1494adbff8cbed221235b95cab27fd | |
parent | 4820c47801e381e23807f5cb117912c1de0b7aa9 (diff) | |
download | samba-50429f60566839faf647cd4c36b66903c7b855ab.tar.gz samba-50429f60566839faf647cd4c36b66903c7b855ab.tar.bz2 samba-50429f60566839faf647cd4c36b66903c7b855ab.zip |
anon passwd connection: passlen=1; ntpasslen=0.
(This used to be commit 12ee037d44a603ce50982d5b90e08c30339de750)
-rw-r--r-- | source3/libsmb/clientgen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 2d19473feb..beb73e736b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -840,7 +840,7 @@ static BOOL cli_calc_session_pwds(struct cli_state *cli, if (ntpass_ok) { ntpword[0] = '\0'; - *ntpasslen=1; + *ntpasslen=0; } return True; @@ -2403,7 +2403,7 @@ BOOL cli_negprot(struct cli_state *cli) cli->servertime = interpret_long_date(cli->inbuf+smb_vwv11+1); memcpy(cli->cryptkey,smb_buf(cli->inbuf),8); cli->capabilities = IVAL(cli->inbuf,smb_vwv9+1); - if (cli->capabilities & 1) { + if (cli->capabilities & CAP_RAW_MODE) { cli->readbraw_supported = True; cli->writebraw_supported = True; } @@ -2550,6 +2550,7 @@ struct cli_state *cli_initialise(struct cli_state *cli) } cli->initialised = 1; + cli->capabilities = CAP_DFS; return cli; } @@ -2795,7 +2796,7 @@ BOOL cli_establish_connection(struct cli_state *cli, if (cli->pwd.cleartext || cli->pwd.null_pwd) { fstring passwd, ntpasswd; - int pass_len, ntpass_len; + int pass_len = 0, ntpass_len = 0; if (cli->pwd.null_pwd) { |