summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/winreg.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-10-28 21:24:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:56 -0500
commit66790e49a237460b0d4862c9f4f64ce8e551f37f (patch)
treeaad950d0e882b45c05138b3eac576e64eca53ce3 /source4/torture/rpc/winreg.c
parent1331667abf1b45abe40353ce70978294314d1a63 (diff)
downloadsamba-66790e49a237460b0d4862c9f4f64ce8e551f37f.tar.gz
samba-66790e49a237460b0d4862c9f4f64ce8e551f37f.tar.bz2
samba-66790e49a237460b0d4862c9f4f64ce8e551f37f.zip
r3332: Check result codes in some more places...
(This used to be commit 87833cc75852bfe198c73ba1be67d1d36a43dc99)
Diffstat (limited to 'source4/torture/rpc/winreg.c')
-rw-r--r--source4/torture/rpc/winreg.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 139da7f574..3fdb546a09 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -126,6 +126,11 @@ static BOOL test_FlushKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return False;
}
+ if (!W_ERROR_IS_OK(r.out.result)) {
+ printf("FlushKey failed - %s\n", win_errstr(r.out.result));
+ return False;
+ }
+
return True;
}
@@ -257,7 +262,7 @@ static BOOL test_EnumKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.enum_index++;
- } while (W_ERROR_IS_OK(r.out.result));
+ } while (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(r.out.result));
return True;
}
@@ -330,6 +335,11 @@ static BOOL test_OpenHKLM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return False;
}
+ if (!W_ERROR_IS_OK(r.out.result)) {
+ printf("OpenHKLM failed - %s\n", win_errstr(r.out.result));
+ return False;
+ }
+
return ret;
}