mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Fix a valgrind error in _samr_DeleteUser
The close_handle invalidates uinfo
This commit is contained in:
parent
df0731d6e9
commit
1a6aaee050
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user