From 6923cc801669ad31741a9e2a024e0d35f1a16d58 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 21 Jan 2011 16:02:18 +0100 Subject: s3-rpc_client: fix dcerpc_try_samr_connects(). Only return when both results are ok. Guenther --- source3/rpc_client/cli_samr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 522e584edb..19dd25578b 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -445,7 +445,7 @@ NTSTATUS dcerpc_try_samr_connects(struct dcerpc_binding_handle *h, &info_out, connect_pol, presult); - if (NT_STATUS_IS_OK(status)) { + if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(*presult)) { return status; } @@ -456,7 +456,7 @@ NTSTATUS dcerpc_try_samr_connects(struct dcerpc_binding_handle *h, access_mask, connect_pol, presult); - if (NT_STATUS_IS_OK(status)) { + if (NT_STATUS_IS_OK(status) && NT_STATUS_IS_OK(*presult)) { return status; } -- cgit