summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-06 01:12:52 +0000
committerTim Potter <tpot@samba.org>2002-09-06 01:12:52 +0000
commitc9e550f76586e9dd4407e26aca4c29ac2186e730 (patch)
tree4496640712f7a5603911e821938b64392925552a /source3/rpc_client
parentce2ac33b736324b818b0dd23be70bb23448320d5 (diff)
downloadsamba-c9e550f76586e9dd4407e26aca4c29ac2186e730.tar.gz
samba-c9e550f76586e9dd4407e26aca4c29ac2186e730.tar.bz2
samba-c9e550f76586e9dd4407e26aca4c29ac2186e730.zip
cli_spoolss_enumprinterdrivers:
Return WERR_UNKNOWN_LEVEL if we can't decode the returned buffer. (This used to be commit 0379a32d825e036c7f0dcabef46547cd678a2a1d)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_spoolss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index b568f38604..caa2f2901b 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -848,6 +848,10 @@ WERROR cli_spoolss_enumprinterdrivers (struct cli_state *cli,
case 3:
decode_printer_driver_3(mem_ctx, r.buffer, r.returned, &ctr->info3);
break;
+ default:
+ DEBUG(10, ("cli_spoolss_enumprinterdrivers: unknown info level %d\n",
+ level));
+ return WERR_UNKNOWN_LEVEL;
}
}