summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-01 13:46:55 +0200
committerGünther Deschner <gd@samba.org>2010-07-01 14:13:16 +0200
commite4ba8fb3b9a6eebe7a56179f67d1aeff64cf1abc (patch)
tree7cd97a597bde7803574930b95d808452ad60dd1b /source3/printing
parent74721bf706371d3fdc5783995a60808763fc7e6d (diff)
downloadsamba-e4ba8fb3b9a6eebe7a56179f67d1aeff64cf1abc.tar.gz
samba-e4ba8fb3b9a6eebe7a56179f67d1aeff64cf1abc.tar.bz2
samba-e4ba8fb3b9a6eebe7a56179f67d1aeff64cf1abc.zip
s3-printing: Fix Bug #7541, %D in "printer admin" causing smbd crash.
Guenther
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 657db56974..9ed6461b27 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -5678,7 +5678,8 @@ bool print_access_check(struct auth_serversupplied_info *server_info, int snum,
if (!NT_STATUS_IS_OK(status) &&
(token_contains_name_in_list(uidtoname(server_info->utok.uid),
- NULL, NULL, server_info->ptok,
+ server_info->info3->base.domain.string,
+ NULL, server_info->ptok,
lp_printer_admin(snum)))) {
talloc_destroy(mem_ctx);
return True;