git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f55c47b
)
Re-add bail on failure.
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 3 Jan 2002 06:10:25 +0000
(06:10 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 3 Jan 2002 06:10:25 +0000
(06:10 +0000)
(This used to be commit
da9444d98f212af8f1b1e1df191adf3c31d50f6d
)
source3/torture/torture.c
patch
|
blob
|
history
diff --git
a/source3/torture/torture.c
b/source3/torture/torture.c
index d3256fdfb1107f554c350a1819d02ea6fed7328c..53f3e11e43dadd05edd60636b16d93999c3429cd 100644
(file)
--- a/
source3/torture/torture.c
+++ b/
source3/torture/torture.c
@@
-2869,14
+2869,20
@@
static BOOL run_error_map_extract(int dummy) {
fstring user;
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;
}
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));
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));