From f8d212b50ca15a4f1bc6b67a5360799e581e1c13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 23 Oct 2008 01:42:27 +0200 Subject: [PATCH] s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success. Guenther (cherry picked from commit 8a0054c6d273049bea235803db25912f6cf03610) (cherry picked from commit 40a904ee021e4c9390235f1d476bc37b87ac9b70) (cherry picked from commit ae01a98d49be39c258e479d610fa2e58ea2b6c62) --- source/rpc_server/srv_samr_nt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c index 22b18c01702..a32d35f4081 100644 --- a/source/rpc_server/srv_samr_nt.c +++ b/source/rpc_server/srv_samr_nt.c @@ -4872,6 +4872,8 @@ NTSTATUS _samr_DeleteUser(pipes_struct *p, 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(disp_info); return NT_STATUS_OK; -- 2.11.4.GIT