git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e873ce9
)
s3-rpc_client: fix dcerpc_try_samr_connects().
author
Günther Deschner
<gd@samba.org>
Fri, 21 Jan 2011 15:02:18 +0000
(16:02 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 21 Jan 2011 15:10:15 +0000
(16:10 +0100)
Only return when both results are ok.
Guenther
source3/rpc_client/cli_samr.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_samr.c
b/source3/rpc_client/cli_samr.c
index 522e584edb55abff5f5e118b33bb5e180911ae82..19dd25578ba81e717b673e60ee27c2b0f8927c96 100644
(file)
--- 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;
}