summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c9
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)) {