diff options
-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( |