summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-28 00:10:17 +0200
committerGünther Deschner <gd@samba.org>2010-09-28 01:17:12 +0200
commit2921888a0808efbe765e3f52a83a91c2e03a44a6 (patch)
tree23fb6facc708b657f9408bcd67c954daea82251a /source3/rpc_server
parenta335848a883d98247470b0beb1eed14afec802de (diff)
downloadsamba-2921888a0808efbe765e3f52a83a91c2e03a44a6.tar.gz
samba-2921888a0808efbe765e3f52a83a91c2e03a44a6.tar.bz2
samba-2921888a0808efbe765e3f52a83a91c2e03a44a6.zip
s3-spoolss: Fix _spoolss_EnumPrintProcessors error handling
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index acb051341f..465f020403 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -8501,6 +8501,10 @@ WERROR _spoolss_EnumPrintProcessors(struct pipes_struct *p,
*r->out.needed = 0;
*r->out.info = NULL;
+ if (!get_short_archi(r->in.environment)) {
+ return WERR_INVALID_ENVIRONMENT;
+ }
+
switch (r->in.level) {
case 1:
result = enumprintprocessors_level_1(p->mem_ctx, r->out.info,