From fe34827ffdaf4f0bbf5da739661675b0595388c7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Dec 2006 16:18:31 +0000 Subject: [PATCH] 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) --- source3/rpc_server/srv_winreg_nt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index 98c1107db57..1738aafc4ee 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -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; } -- 2.34.1