diff options
author | Gerald Carter <jerry@samba.org> | 2005-10-14 21:09:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:00 -0500 |
commit | 1b9122943558fa903991ba1353e04faacdac85fe (patch) | |
tree | e76cc6d7902718a2ff05bfee3d918a49b23ba9d4 /source3/rpc_server | |
parent | e7d18710096ef9289832b901399a230d31533f9a (diff) | |
download | samba-1b9122943558fa903991ba1353e04faacdac85fe.tar.gz samba-1b9122943558fa903991ba1353e04faacdac85fe.tar.bz2 samba-1b9122943558fa903991ba1353e04faacdac85fe.zip |
r11069: make sure to zero memory when allocating a a REGVAL_CTR struct
(This used to be commit bfdcbb7572352b3a3b7941249438a927eb91e18d)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_reg_nt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c index 47c8746b12..4cd824c9ef 100644 --- a/source3/rpc_server/srv_reg_nt.c +++ b/source3/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)); |