summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-21 18:54:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:58 -0500
commit1303cd82451aca43d63166bbd2779ea4a388a72d (patch)
tree9b23e6c74824a723dcfac7702764e6a1d35fbb28 /source3
parent3a60a6743262ab2ab221e0fe13ef6b510424ca3f (diff)
downloadsamba-1303cd82451aca43d63166bbd2779ea4a388a72d.tar.gz
samba-1303cd82451aca43d63166bbd2779ea4a388a72d.tar.bz2
samba-1303cd82451aca43d63166bbd2779ea4a388a72d.zip
r18794: Make ENumKey() work again in the registry server
(This used to be commit 7ead5ac79203a15dc1d9d7982446eafbb1f9eefd)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_winreg_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index 6f276d0c86..91435fc87e 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -554,7 +554,7 @@ WERROR _winreg_EnumKey(pipes_struct *p, struct policy_handle *handle, uint32_t e
if ( !regkey )
return WERR_BADFID;
- if ( !name || !keyclass || !last_changed_time )
+ if ( !name || !keyclass )
return WERR_INVALID_PARAM;
DEBUG(8,("_reg_enum_key: enumerating key [%s]\n", regkey->name));
@@ -566,7 +566,9 @@ WERROR _winreg_EnumKey(pipes_struct *p, struct policy_handle *handle, uint32_t e
DEBUG(10,("_reg_enum_key: retrieved subkey named [%s]\n", subkey));
- *last_changed_time = 0;
+ if ( last_changed_time ) {
+ *last_changed_time = 0;
+ }
keyclass->name = NULL;
if ( (name->name = talloc_strdup( p->mem_ctx, subkey )) == NULL ) {
status = WERR_NOMEM;