diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-08 09:24:11 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-08 17:51:30 +0200 |
commit | 173e323cd9623d1da8db921a3b64f23c21314c54 (patch) | |
tree | 4c0ddf288600725286645a8c9b26ab6340555975 /source3/torture | |
parent | a7e418dd45fe81af4ec4fbddfcfffb491487a8b7 (diff) | |
download | samba-173e323cd9623d1da8db921a3b64f23c21314c54.tar.gz samba-173e323cd9623d1da8db921a3b64f23c21314c54.tar.bz2 samba-173e323cd9623d1da8db921a3b64f23c21314c54.zip |
s3:torture: make use of CLI_FULL_CONNECTION_FORCE_DOS_ERRORS
metze
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 495875b27a..49f26a37a3 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -57,6 +57,7 @@ static bool use_oplocks; static bool use_level_II_oplocks; static const char *client_txt = "client_oplocks.txt"; static bool use_kerberos; +static bool force_dos_errors; static fstring multishare_conn_fname; static bool use_multishare_conn = False; static bool do_encrypt; @@ -195,6 +196,10 @@ static struct cli_state *open_nbt_connection(void) flags |= CLI_FULL_CONNECTION_USE_KERBEROS; } + if (force_dos_errors) { + flags |= CLI_FULL_CONNECTION_FORCE_DOS_ERRORS; + } + status = cli_connect_nb(host, NULL, port_to_use, 0x20, myname, signing_state, flags, &c); if (!NT_STATUS_IS_OK(status)) { @@ -6310,12 +6315,14 @@ static bool run_error_map_extract(int dummy) { /* DOS-Error connection */ + force_dos_errors = true; if (!(c_dos = open_nbt_connection())) { + force_dos_errors = false; return False; } + force_dos_errors = false; c_dos->use_spnego = False; - c_dos->force_dos_errors = True; status = cli_negprot(c_dos); if (!NT_STATUS_IS_OK(status)) { |