diff options
author | Tim Potter <tpot@samba.org> | 2003-11-23 10:51:39 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-23 10:51:39 +0000 |
commit | 29ee36d0c96ea0c98b3dfd52b2170df9c329b86f (patch) | |
tree | b10f9d38ef0b8c5a1e5ad74b92ad406b1d68e601 /source4/torture | |
parent | c071301a77b1987526f42c8877336a1f6a1bfa7e (diff) | |
download | samba-29ee36d0c96ea0c98b3dfd52b2170df9c329b86f.tar.gz samba-29ee36d0c96ea0c98b3dfd52b2170df9c329b86f.tar.bz2 samba-29ee36d0c96ea0c98b3dfd52b2170df9c329b86f.zip |
Check NT_STATUS code from dcerpc call function before checking the
WERROR code.
(This used to be commit b4792b7b316f8cb665b5a698f348c7c033702934)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/winreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 34af39b809..cc0cc6fa0f 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -354,11 +354,11 @@ BOOL test_Open(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, void *fn) if (!open_fn(p, mem_ctx, &handle)) return False; +#if 0 if (!test_EnumKey(p, mem_ctx, &handle)) { ret = False; } -#if 0 if (!test_GetVersion(p, mem_ctx, &handle)) { ret = False; } @@ -385,7 +385,7 @@ BOOL test_Open(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, void *fn) do { status = dcerpc_winreg_EnumKey(p, mem_ctx, &r); - if (W_ERROR_IS_OK(r.out.result)) { + if (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(r.out.result)) { struct policy_handle key_handle; if (!test_OpenKey( |