diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 2dcf360daf..2d50280ac8 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -5747,11 +5747,11 @@ NTSTATUS _samr_DeleteDomainGroup(pipes_struct *p, return status; } + force_flush_samr_cache(&ginfo->sid); + if (!close_policy_hnd(p, r->in.group_handle)) return NT_STATUS_OBJECT_NAME_INVALID; - force_flush_samr_cache(&ginfo->sid); - return NT_STATUS_OK; } @@ -5799,11 +5799,11 @@ NTSTATUS _samr_DeleteDomAlias(pipes_struct *p, if ( !NT_STATUS_IS_OK(status)) return status; + force_flush_samr_cache(&ainfo->sid); + if (!close_policy_hnd(p, r->in.alias_handle)) return NT_STATUS_OBJECT_NAME_INVALID; - force_flush_samr_cache(&ainfo->sid); - return NT_STATUS_OK; } |