From b73426595cb30e822aee5d7e4079c3bc9a21f0ba Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Sep 2011 17:03:43 +0200 Subject: s3-spoolss: Fix bug #8236 empty notify servername. Signed-off-by: Andreas Schneider Autobuild-User: Jeremy Allison Autobuild-Date: Sat Sep 3 02:58:42 CEST 2011 on sn-devel-104 --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/rpc_server/spoolss') diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index a2f8d68665..0f9bfb701a 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -3708,6 +3708,15 @@ static WERROR printer_notify_info(struct pipes_struct *p, return WERR_BADFID; } + /* + * When sending a PRINTER_NOTIFY_FIELD_SERVER_NAME we should send the + * correct servername. + */ + pinfo2->servername = talloc_strdup(pinfo2, Printer->servername); + if (pinfo2->servername == NULL) { + return WERR_NOMEM; + } + for (i=0; icount; i++) { option_type = option->types[i]; -- cgit