mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
r20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re-use the handle
(This used to be commit 0afd696f88ed04f562ef64201ac2e58cef372a90)
This commit is contained in:
parent
7299dc8b54
commit
fe34827ffd
@ -126,6 +126,8 @@ WERROR _winreg_CloseKey(pipes_struct *p, struct policy_handle *handle)
|
||||
if (!close_registry_key(p, handle))
|
||||
return WERR_BADFID;
|
||||
|
||||
ZERO_STRUCTP(handle);
|
||||
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user