diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-01-03 05:48:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-01-03 05:48:49 +0000 |
commit | 27143900e76033026ecd5a7b4525c0150f3a535d (patch) | |
tree | dee77abfcf4c72d907067bfe14be43ee7ad22ad6 /source | |
parent | b46d874f4736493bdc4244ec6cdf95e77347e7d5 (diff) | |
download | samba-27143900e76033026ecd5a7b4525c0150f3a535d.tar.gz samba-27143900e76033026ecd5a7b4525c0150f3a535d.tar.xz samba-27143900e76033026ecd5a7b4525c0150f3a535d.zip |
fixed ERRMAPEXTRACT torture to work with win2k
Diffstat (limited to 'source')
-rw-r--r-- | source/torture/torture.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c index 8e70c0941f7..d3256fdfb11 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -2869,26 +2869,20 @@ static BOOL run_error_map_extract(int dummy) { fstring user; - if (!open_nbt_connection(&c_dos)) { - return False; - } - - if (!open_nbt_connection(&c_nt)) { + open_nbt_connection(&c_nt); + if (!cli_negprot(&c_nt)) { + printf("%s rejected the NT-error negprot (%s)\n",host, cli_errstr(&c_nt)); + cli_shutdown(&c_nt); return False; } + open_nbt_connection(&c_dos); c_dos.force_dos_errors = True; - if (!cli_negprot(&c_dos)) { printf("%s rejected the DOS-error negprot (%s)\n",host, cli_errstr(&c_dos)); cli_shutdown(&c_dos); return False; } - if (!cli_negprot(&c_nt)) { - printf("%s rejected the NT-error negprot (%s)\n",host, cli_errstr(&c_nt)); - cli_shutdown(&c_nt); - return False; - } for (error=(0xc0000000 | 0x1); error < (0xc0000000| 0xFFF); error++) { snprintf(user, sizeof(user), "%X", error); |