summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-09-02 17:03:43 +0200
committerJeremy Allison <jra@samba.org>2011-09-03 02:58:42 +0200
commitb73426595cb30e822aee5d7e4079c3bc9a21f0ba (patch)
tree95a4a8ce39a8450f3d0285062fa66d9fae88309e /source3
parent17f6e0272370f764d4a0053c8e74f20b0444c721 (diff)
downloadsamba-b73426595cb30e822aee5d7e4079c3bc9a21f0ba.tar.gz
samba-b73426595cb30e822aee5d7e4079c3bc9a21f0ba.tar.bz2
samba-b73426595cb30e822aee5d7e4079c3bc9a21f0ba.zip
s3-spoolss: Fix bug #8236 empty notify servername.
Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Sep 3 02:58:42 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c9
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 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; i<option->count; i++) {
option_type = option->types[i];