summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-06-24 19:32:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:02 -0500
commitcf1c4ae9a63b2cc76d40dd5db721520743a26153 (patch)
treee694cffa0accb06ea68a2d489d3fde7b1a4792b6 /source3/rpc_server
parent792776782e18417b8e6e63954db153f4d3d0d558 (diff)
downloadsamba-cf1c4ae9a63b2cc76d40dd5db721520743a26153.tar.gz
samba-cf1c4ae9a63b2cc76d40dd5db721520743a26153.tar.bz2
samba-cf1c4ae9a63b2cc76d40dd5db721520743a26153.zip
r1241: Fix incorrect type in printer publishing (struct uuid, not UUID_FLAT).
Jeremy. (This used to be commit a535a059754730d0a5c2fe64ef14708da2ca6b5c)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d8c6b5350c..06ba543597 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4317,11 +4317,10 @@ static BOOL construct_printer_info_5(Printer_entry *print_hnd, PRINTER_INFO_5 *p
static BOOL construct_printer_info_7(Printer_entry *print_hnd, PRINTER_INFO_7 *printer, int snum)
{
char *guid_str = NULL;
- UUID_FLAT guid;
+ struct uuid guid;
if (is_printer_published(print_hnd, snum, &guid)) {
- asprintf(&guid_str, "{%s}",
- smb_uuid_string_static(smb_uuid_unpack_static(guid)));
+ asprintf(&guid_str, "{%s}", smb_uuid_string_static(guid));
strupper_m(guid_str);
init_unistr(&printer->guid, guid_str);
printer->action = SPOOL_DS_PUBLISH;