diff options
-rw-r--r-- | source3/utils/net_rpc_registry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index c7224f7ecc..db2e8d6205 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1038,7 +1038,8 @@ static bool write_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk, return false; } - if ( !(values = TALLOC_ZERO_P( subkeys, struct regval_ctr )) ) { + werr = regval_ctr_init(subkeys, &values); + if (!W_ERROR_IS_OK(werr)) { DEBUG(0,("write_registry_tree: talloc() failed!\n")); TALLOC_FREE(subkeys); return false; |