summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-21 16:02:18 +0100
committerGünther Deschner <gd@samba.org>2011-01-21 16:10:15 +0100
commit6923cc801669ad31741a9e2a024e0d35f1a16d58 (patch)
tree6ed8f3682df3ef0e675a9675c5bcad8a68811541 /source3/rpc_client
parente873ce9b651b665b1b0e3755b016587f02a9f99d (diff)
downloadsamba-6923cc801669ad31741a9e2a024e0d35f1a16d58.tar.gz
samba-6923cc801669ad31741a9e2a024e0d35f1a16d58.tar.bz2
samba-6923cc801669ad31741a9e2a024e0d35f1a16d58.zip
s3-rpc_client: fix dcerpc_try_samr_connects().
Only return when both results are ok. Guenther
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_samr.c4
1 files changed, 2 insertions, 2 deletions
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;
}