From 29ee36d0c96ea0c98b3dfd52b2170df9c329b86f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 23 Nov 2003 10:51:39 +0000 Subject: Check NT_STATUS code from dcerpc call function before checking the WERROR code. (This used to be commit b4792b7b316f8cb665b5a698f348c7c033702934) --- source4/torture/rpc/winreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc/winreg.c') 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( -- cgit