From 233197c736593149d17f19ccababdcd7cc7bf464 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 14 Oct 2005 21:09:56 +0000 Subject: [PATCH] r11069: make sure to zero memory when allocating a a REGVAL_CTR struct --- source/rpc_server/srv_reg_nt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/rpc_server/srv_reg_nt.c b/source/rpc_server/srv_reg_nt.c index 47c8746b121..4cd824c9ef9 100644 --- a/source/rpc_server/srv_reg_nt.c +++ b/source/rpc_server/srv_reg_nt.c @@ -331,7 +331,7 @@ WERROR _reg_query_value(pipes_struct *p, REG_Q_QUERY_VALUE *q_u, REG_R_QUERY_VAL 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 @@ WERROR _reg_enum_value(pipes_struct *p, REG_Q_ENUM_VALUE *q_u, REG_R_ENUM_VALUE 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)); -- 2.11.4.GIT