summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-18 12:40:00 +0100
committerGünther Deschner <gd@samba.org>2010-02-18 12:40:36 +0100
commitb3c2b2260a503079b9abf22f6b35b56c61c2b372 (patch)
treefe57df0fed031a89daf0e0e9dd0335b4a0233a68 /source3/rpc_server
parentb6f58e25b5bbce25d4e8825e680afe3986f10e8c (diff)
downloadsamba-b3c2b2260a503079b9abf22f6b35b56c61c2b372.tar.gz
samba-b3c2b2260a503079b9abf22f6b35b56c61c2b372.tar.bz2
samba-b3c2b2260a503079b9abf22f6b35b56c61c2b372.zip
s3-spoolss: Fix _spoolss_EnumPrinters servername handling.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 445a65465b..9d9a148a02 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4309,7 +4309,7 @@ WERROR _spoolss_EnumPrinters(pipes_struct *p,
* Level 5: same as Level 2
*/
- if (name) {
+ if (r->in.server) {
name = talloc_strdup_upper(p->mem_ctx, r->in.server);
W_ERROR_HAVE_NO_MEMORY(name);
}