From 002d1a44672c9b3247a68a86899ce6644b696a48 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Wed, 29 May 2013 10:43:33 +0200 Subject: Fix bug 9900: is_printer_published GUID retrieval Samba currently always responds to GetPrinter(level = 7) requests with DSPRINT_UNPUBLISH, regardless of the AD publish status tracked via the PRINTER_ATTRIBUTE_PUBLISHED flag. This is due to erroneous "objectGUID" unmarshalling in is_printer_published(). This change splits "objectGUID" retrieval into a separate function, and adds a pull_reg_sz() call to correctly unmarshall the GUID. Signed-off-by: David Disseldorp Reviewed-by: Andreas Schneider --- source3/smbd/server_reload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/server_reload.c b/source3/smbd/server_reload.c index 3a8f5bb920..1d6f9c2911 100644 --- a/source3/smbd/server_reload.c +++ b/source3/smbd/server_reload.c @@ -106,7 +106,7 @@ void delete_and_reload_printers(struct tevent_context *ev, NULL, lp_servicename(session_info, snum), - NULL, &pinfo2)) { + &pinfo2)) { nt_printer_publish(session_info, session_info, msg_ctx, -- cgit