1
0
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:
Volker Lendecke 2006-12-03 16:18:31 +00:00 committed by Gerald (Jerry) Carter
parent 7299dc8b54
commit fe34827ffd

View File

@ -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;
}