From 7f23546730e49569d41a5edd0c47bb559c4f812d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 20 Dec 2002 20:23:06 +0000 Subject: Forward port the change to talloc_init() to make all talloc contexts named. Ensure we can query them. Jeremy. (This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33) --- source3/printing/notify.c | 2 +- source3/printing/nt_printing.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/notify.c b/source3/printing/notify.c index f55dbff47e..a89eb3f13c 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -146,7 +146,7 @@ static void send_spoolss_notify2_msg(struct spoolss_notify_msg *msg) return; if (!send_ctx) - send_ctx = talloc_init_named("print notify queue"); + send_ctx = talloc_init("print notify queue"); if (!send_ctx) goto fail; diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index ab01e77c61..31f480a4dd 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2574,7 +2574,7 @@ static void store_printer_guid(NT_PRINTER_INFO_LEVEL_2 *info2, GUID guid) static WERROR publish_it(NT_PRINTER_INFO_LEVEL *printer) { ADS_STATUS ads_rc; - TALLOC_CTX *ctx = talloc_init(); + TALLOC_CTX *ctx = talloc_init("publish_it"); ADS_MODLIST mods = ads_init_mods(ctx); char *prt_dn = NULL, *srv_dn, **srv_cn; void *res = NULL; @@ -3713,7 +3713,7 @@ static WERROR save_driver_init_2(NT_PRINTER_INFO_LEVEL *printer, uint8 *data, ui * saved to tdb. */ - if ((ctx = talloc_init()) == NULL) + if ((ctx = talloc_init("save_driver_init_2")) == NULL) return WERR_NOMEM; if ((nt_devmode = (NT_DEVICEMODE*)malloc(sizeof(NT_DEVICEMODE))) == NULL) { @@ -4397,7 +4397,7 @@ WERROR nt_printing_setsec(const char *printername, SEC_DESC_BUF *secdesc_ctr) fstring key; WERROR status; - mem_ctx = talloc_init(); + mem_ctx = talloc_init("nt_printing_setsec"); if (mem_ctx == NULL) return WERR_NOMEM; @@ -4744,7 +4744,7 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type) /* Get printer security descriptor */ - if(!(mem_ctx = talloc_init())) { + if(!(mem_ctx = talloc_init("print_access_check"))) { errno = ENOMEM; return False; } -- cgit