svn commit: samba r18794 - in branches/SAMBA_3_0/source/rpc_server: .

jerry at samba.org jerry at samba.org
Thu Sep 21 18:54:25 GMT 2006


Author: jerry
Date: 2006-09-21 18:54:25 +0000 (Thu, 21 Sep 2006)
New Revision: 18794

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18794

Log:
Make ENumKey() work again in the registry server
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c	2006-09-21 18:37:09 UTC (rev 18793)
+++ branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c	2006-09-21 18:54:25 UTC (rev 18794)
@@ -554,7 +554,7 @@
 	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 @@
 	
 	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;



More information about the samba-cvs mailing list