From f00e46cf01b39c89f39debe606aafbfe623be9ba Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Sep 2011 17:03:43 +0200 Subject: [PATCH] s3-spoolss: Fix bug #8236 empty notify servername. Signed-off-by: Andreas Schneider --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index c309c65..c886f34 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -3695,6 +3695,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]; -- 1.7.6.1