summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-26 15:38:10 +0200
committerVolker Lendecke <vl@samba.org>2009-07-26 15:47:31 +0200
commit1a6aaee0507fbcd3abc2bdaad55cf5c4a6ff0e05 (patch)
tree08afefd0516bdf7df8a6c76221b1d41fbb56200a
parentdf0731d6e99aa85687b8cc54ed18e4f89c9b741c (diff)
downloadsamba-1a6aaee0507fbcd3abc2bdaad55cf5c4a6ff0e05.tar.gz
samba-1a6aaee0507fbcd3abc2bdaad55cf5c4a6ff0e05.tar.bz2
samba-1a6aaee0507fbcd3abc2bdaad55cf5c4a6ff0e05.zip
Fix a valgrind error in _samr_DeleteUser
The close_handle invalidates uinfo
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index b27603f261..2dcf360daf 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -5694,13 +5694,13 @@ NTSTATUS _samr_DeleteUser(pipes_struct *p,
TALLOC_FREE(sam_pass);
+ force_flush_samr_cache(&uinfo->sid);
+
if (!close_policy_hnd(p, r->in.user_handle))
return NT_STATUS_OBJECT_NAME_INVALID;
ZERO_STRUCTP(r->out.user_handle);
- force_flush_samr_cache(&uinfo->sid);
-
return NT_STATUS_OK;
}