diff options
-rw-r--r-- | source3/rpc_server/srv_winreg_nt.c | 2 |
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; } |