1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Check NT_STATUS code from dcerpc call function before checking the

WERROR code.
This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 7ae329e663
commit b4792b7b31

View File

@ -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(