summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:32:37 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:25 +0200
commit8c665f6da62f7b181bc975212ec5e486af401a44 (patch)
tree8af935769e240f110a7cdfed723564a19288514f
parente43ffde91f6781c135d4125b91911e79c06a7409 (diff)
downloadsamba-8c665f6da62f7b181bc975212ec5e486af401a44.tar.gz
samba-8c665f6da62f7b181bc975212ec5e486af401a44.tar.bz2
samba-8c665f6da62f7b181bc975212ec5e486af401a44.zip
s3: Lift the smbd_messaging_context from store_printer_guid
-rw-r--r--source3/printing/nt_printing_ads.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c
index 316cf6c24a..78535a89f6 100644
--- a/source3/printing/nt_printing_ads.c
+++ b/source3/printing/nt_printing_ads.c
@@ -30,7 +30,8 @@
/*****************************************************************
****************************************************************/
-static void store_printer_guid(const char *printer, struct GUID guid)
+static void store_printer_guid(struct messaging_context *msg_ctx,
+ const char *printer, struct GUID guid)
{
TALLOC_CTX *tmp_ctx;
struct auth_serversupplied_info *server_info = NULL;
@@ -68,8 +69,7 @@ static void store_printer_guid(const char *printer, struct GUID guid)
goto done;
}
- result = winreg_set_printer_dataex(tmp_ctx, server_info,
- smbd_messaging_context(),
+ result = winreg_set_printer_dataex(tmp_ctx, server_info, msg_ctx,
printer,
SPOOL_DSSPOOLER_KEY, "objectGUID",
REG_SZ, blob.data, blob.length);
@@ -188,7 +188,7 @@ static WERROR nt_printer_publish_ads(ADS_STRUCT *ads,
ZERO_STRUCT(guid);
ads_pull_guid(ads, res, &guid);
ads_msgfree(ads, res);
- store_printer_guid(printer, guid);
+ store_printer_guid(smbd_messaging_context(), printer, guid);
}
TALLOC_FREE(ctx);