summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-25 00:32:21 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 13:22:53 +0100
commitd2fc3abeeac89fac345ef8218685e490b1a470e6 (patch)
tree8c675abbd7951f0dd6103692bd12513388693876 /source3
parent1ce0035abbff4625621c0ef16af3902959cd342f (diff)
downloadsamba-d2fc3abeeac89fac345ef8218685e490b1a470e6.tar.gz
samba-d2fc3abeeac89fac345ef8218685e490b1a470e6.tar.bz2
samba-d2fc3abeeac89fac345ef8218685e490b1a470e6.zip
s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/profiles.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 2c9bc36faf..0ac93dedeb 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -121,6 +121,7 @@ static bool copy_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk,
struct regsubkey_ctr *subkeys;
int i;
char *path;
+ WERROR werr;
/* swap out the SIDs in the security descriptor */
@@ -132,7 +133,8 @@ static bool copy_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk,
verbose_output("ACL for %s%s%s\n", parentpath, parent ? "\\" : "", nk->keyname);
swap_sid_in_acl( new_sd, &old_sid, &new_sid );
- if ( !(subkeys = TALLOC_ZERO_P( NULL, struct regsubkey_ctr )) ) {
+ werr = regsubkey_ctr_init(NULL, &subkeys);
+ if (!W_ERROR_IS_OK(werr)) {
DEBUG(0,("copy_registry_tree: talloc() failure!\n"));
return False;
}