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 | 12ee037d44a603ce50982d5b90e08c30339de750 (patch) | |
tree | 97f00844ea51846ce378968e911f0f1329258960 /source/libsmb/clientgen.c | |
parent | 91d5bda9ad22c922a918f0942dcbff04202b9991 (diff) | |
download | samba-12ee037d44a603ce50982d5b90e08c30339de750.tar.gz samba-12ee037d44a603ce50982d5b90e08c30339de750.tar.xz samba-12ee037d44a603ce50982d5b90e08c30339de750.zip |
anon passwd connection: passlen=1; ntpasslen=0.
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r-- | source/libsmb/clientgen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 2d19473feb0..beb73e736b5 100644 --- a/source/libsmb/clientgen.c +++ b/source/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) { |