summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-26 22:04:59 +0200
committerVolker Lendecke <vl@samba.org>2009-07-26 22:05:41 +0200
commitfb03bbfa09c9df01c349f19a28c05f9bfd1cf4dc (patch)
treeec71be3ffeb44ecd9db38be9ae99a5f620599f59
parent1a6aaee0507fbcd3abc2bdaad55cf5c4a6ff0e05 (diff)
downloadsamba-fb03bbfa09c9df01c349f19a28c05f9bfd1cf4dc.tar.gz
samba-fb03bbfa09c9df01c349f19a28c05f9bfd1cf4dc.tar.bz2
samba-fb03bbfa09c9df01c349f19a28c05f9bfd1cf4dc.zip
Fix valgrind errors in DeleteDomainGroup and DeleteDomAlias
-rw-r--r--source3/rpc_server/srv_samr_nt.c8
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;
}