svn commit: samba r11069 - branches/SAMBA_3_0/source/rpc_server
trunk/source/rpc_server
jerry at samba.org
jerry at samba.org
Fri Oct 14 21:09:57 GMT 2005
Author: jerry
Date: 2005-10-14 21:09:56 +0000 (Fri, 14 Oct 2005)
New Revision: 11069
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11069
Log:
make sure to zero memory when allocating a a REGVAL_CTR struct
Modified:
branches/SAMBA_3_0/source/rpc_server/srv_reg_nt.c
trunk/source/rpc_server/srv_reg_nt.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_reg_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_reg_nt.c 2005-10-14 21:05:45 UTC (rev 11068)
+++ branches/SAMBA_3_0/source/rpc_server/srv_reg_nt.c 2005-10-14 21:09:56 UTC (rev 11069)
@@ -331,7 +331,7 @@
DEBUG(5,("_reg_info: looking up value: [%s]\n", name));
- if ( !(regvals = TALLOC_P( p->mem_ctx, REGVAL_CTR )) )
+ if ( !(regvals = TALLOC_ZERO_P( p->mem_ctx, REGVAL_CTR )) )
return WERR_NOMEM;
/* Handle QueryValue calls on HKEY_PERFORMANCE_DATA */
@@ -536,6 +536,10 @@
status = WERR_NO_MORE_ITEMS;
goto done;
}
+
+ if ( val->type == REG_MULTI_SZ ) {
+
+ }
DEBUG(10,("_reg_enum_value: retrieved value named [%s]\n", val->valuename));
Modified: trunk/source/rpc_server/srv_reg_nt.c
===================================================================
--- trunk/source/rpc_server/srv_reg_nt.c 2005-10-14 21:05:45 UTC (rev 11068)
+++ trunk/source/rpc_server/srv_reg_nt.c 2005-10-14 21:09:56 UTC (rev 11069)
@@ -331,7 +331,7 @@
DEBUG(5,("_reg_info: looking up value: [%s]\n", name));
- if ( !(regvals = TALLOC_P( p->mem_ctx, REGVAL_CTR )) )
+ if ( !(regvals = TALLOC_ZERO_P( p->mem_ctx, REGVAL_CTR )) )
return WERR_NOMEM;
/* Handle QueryValue calls on HKEY_PERFORMANCE_DATA */
@@ -536,6 +536,10 @@
status = WERR_NO_MORE_ITEMS;
goto done;
}
+
+ if ( val->type == REG_MULTI_SZ ) {
+
+ }
DEBUG(10,("_reg_enum_value: retrieved value named [%s]\n", val->valuename));
More information about the samba-cvs
mailing list