From 43b2bdce3ebf2598f97a611ad879c7ab527728fd Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 9 Oct 2000 14:41:19 +0000 Subject: I introduced a bug in my last commits. Hopefully nobody noticed :-) J.F. (This used to be commit 044246fe7e40d83673120dc14b5d6572e6c23142) --- source3/rpc_server/srv_samr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') 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)) -- cgit