summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-03 06:10:25 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-03 06:10:25 +0000
commitf9866e88a682e101e0b5f15e63632f6858781842 (patch)
tree370575f8ab030cb7e07a2be696ccd048a10ddee4 /source3/torture
parentf55c47b1ff9b9b53a53de320a6f7ddc181292b27 (diff)
downloadsamba-f9866e88a682e101e0b5f15e63632f6858781842.tar.gz
samba-f9866e88a682e101e0b5f15e63632f6858781842.tar.bz2
samba-f9866e88a682e101e0b5f15e63632f6858781842.zip
Re-add bail on failure.
(This used to be commit da9444d98f212af8f1b1e1df191adf3c31d50f6d)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index d3256fdfb1..53f3e11e43 100644
--- a/source3/torture/torture.c
+++ b/source3/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));