diff options
author | Jeremy Allison <jra@samba.org> | 2002-12-20 20:21:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-12-20 20:21:31 +0000 |
commit | ef8bd7c4f7ae8192ea05db070962ecf0ff3615f3 (patch) | |
tree | 09644a4bc94784b1f097a7cfb6259dad6c33ae0e /source3/rpcclient | |
parent | 8c93138982da3f9444bdef63cf48de37876866ed (diff) | |
download | samba-ef8bd7c4f7ae8192ea05db070962ecf0ff3615f3.tar.gz samba-ef8bd7c4f7ae8192ea05db070962ecf0ff3615f3.tar.bz2 samba-ef8bd7c4f7ae8192ea05db070962ecf0ff3615f3.zip |
Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/rpcclient.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 246e74dc35..5c6308d07c 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -1310,7 +1310,7 @@ static NTSTATUS cmd_samr_query_sec_obj(struct cli_state *cli, SEC_DESC_BUF *sec_desc_buf=NULL; BOOL domain = False; - ctx=talloc_init(); + ctx=talloc_init("cmd_samr_query_sec_obj"); if ((argc < 1) || (argc > 2)) { printf("Usage: %s [rid|-d]\n", argv[0]); diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 646a6d9035..02fa91cf26 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -197,7 +197,7 @@ static void fetch_machine_sid(struct cli_state *cli) if (got_domain_sid) return; - if (!(mem_ctx=talloc_init())) + if (!(mem_ctx=talloc_init("fetch_machine_sid"))) { DEBUG(0,("fetch_machine_sid: talloc_init returned NULL!\n")); goto error; @@ -479,7 +479,7 @@ static NTSTATUS do_cmd(struct cli_state *cli, struct cmd_set *cmd_entry, /* Create mem_ctx */ - if (!(mem_ctx = talloc_init())) { + if (!(mem_ctx = talloc_init("do_cmd"))) { DEBUG(0, ("talloc_init() failed\n")); goto done; } |