summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-03 16:18:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:20 -0500
commitfe34827ffdaf4f0bbf5da739661675b0595388c7 (patch)
treee4bd5c45aadedbf55a06b2264dfe767ee0635a9e
parent7299dc8b54079c42ded160e76e4f18b1eb24450a (diff)
downloadsamba-fe34827ffdaf4f0bbf5da739661675b0595388c7.tar.gz
samba-fe34827ffdaf4f0bbf5da739661675b0595388c7.tar.bz2
samba-fe34827ffdaf4f0bbf5da739661675b0595388c7.zip
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)
-rw-r--r--source3/rpc_server/srv_winreg_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index 98c1107db5..1738aafc4e 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;
}