diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-03 06:10:25 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-03 06:10:25 +0000 |
commit | da9444d98f212af8f1b1e1df191adf3c31d50f6d (patch) | |
tree | 91ff1e792433c565f12db898152a4a47fed198fb | |
parent | 9a473ecf96fca35d146756c0c313b156aba8d9d9 (diff) | |
download | samba-da9444d98f212af8f1b1e1df191adf3c31d50f6d.tar.gz |
Re-add bail on failure.
-rw-r--r-- | source/torture/torture.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c index d3256fdfb11..53f3e11e43d 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -2869,14 +2869,20 @@ static BOOL run_error_map_extract(int dummy) { fstring user; - open_nbt_connection(&c_nt); + if (!open_nbt_connection(&c_nt)) { + 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; } - open_nbt_connection(&c_dos); + if (!open_nbt_connection(&c_dos)) { + return False; + } + 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)); |