summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-10-09 14:41:19 +0000
committerJean-François Micouleau <jfm@samba.org>2000-10-09 14:41:19 +0000
commit43b2bdce3ebf2598f97a611ad879c7ab527728fd (patch)
treeefa75737204009bf7b468e5b4715238a288255c3
parent4d968ed35d423cf413689a97bfc78fc67b7a09f1 (diff)
downloadsamba-43b2bdce3ebf2598f97a611ad879c7ab527728fd.tar.gz
samba-43b2bdce3ebf2598f97a611ad879c7ab527728fd.tar.bz2
samba-43b2bdce3ebf2598f97a611ad879c7ab527728fd.zip
I introduced a bug in my last commits. Hopefully nobody noticed :-)
J.F. (This used to be commit 044246fe7e40d83673120dc14b5d6572e6c23142)
-rw-r--r--source3/rpc_server/srv_samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index a0c043461f..93f1f704a8 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -2150,8 +2150,8 @@ static uint32 _api_samr_open_alias(POLICY_HND domain_pol, uint32 alias_rid, POLI
DOM_SID sid;
/* get the domain policy. */
- if (!open_lsa_policy_hnd(&domain_pol))
- return NT_STATUS_OBJECT_NAME_NOT_FOUND;
+ if (find_lsa_policy_by_hnd(&domain_pol) == -1)
+ return NT_STATUS_INVALID_HANDLE;
/* get a (unique) handle. open a policy on it. */
if (!open_lsa_policy_hnd(alias_pol))