summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-24 00:53:22 +0100
committerMichael Adam <obnox@samba.org>2007-12-24 00:53:22 +0100
commitc74579f49149171e731ae9b5a8e77c579d120cbb (patch)
tree29defe78df65f7278df181f584f5b35aa0bd32a9 /source3/utils
parent225dbe6c02e45b30541acb21f60cc20ddcfbf362 (diff)
downloadsamba-c74579f49149171e731ae9b5a8e77c579d120cbb.tar.gz
samba-c74579f49149171e731ae9b5a8e77c579d120cbb.tar.bz2
samba-c74579f49149171e731ae9b5a8e77c579d120cbb.zip
Make libnet_smbconf_key_exists() use talloc_stackframe().
And not pass a talloc context. Michael (This used to be commit 7e8451f2f03b246801783aaf4b3d54465292f8f7)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index f3f2321643..d09079c6f2 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -340,7 +340,7 @@ static int import_process_service(TALLOC_CTX *ctx,
if (opt_testmode) {
d_printf("[%s]\n", servicename);
} else {
- if (libnet_smbconf_key_exists(tmp_ctx, servicename)) {
+ if (libnet_smbconf_key_exists(servicename)) {
werr = reg_delkey_internal(tmp_ctx, servicename);
if (!W_ERROR_IS_OK(werr)) {
goto done;
@@ -424,7 +424,7 @@ int net_conf_list(int argc, const char **argv)
goto done;
}
- if (libnet_smbconf_key_exists(ctx, GLOBAL_NAME)) {
+ if (libnet_smbconf_key_exists(GLOBAL_NAME)) {
werr = reg_openkey(ctx, base_key, GLOBAL_NAME,
REG_KEY_READ, &sub_key);
if (!W_ERROR_IS_OK(werr)) {