diff options
author | Tim Potter <tpot@samba.org> | 2002-09-09 01:13:27 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-09-09 01:13:27 +0000 |
commit | 1f919364f48a35dfd52d825e394a5a9462b1806e (patch) | |
tree | 1450004f8907963b8c43d8bc5d7fe1f5421e020d | |
parent | 35d9e886fba9e95b7df1abc4f25b22251b95ac82 (diff) | |
download | samba-1f919364f48a35dfd52d825e394a5a9462b1806e.tar.gz samba-1f919364f48a35dfd52d825e394a5a9462b1806e.tar.bz2 samba-1f919364f48a35dfd52d825e394a5a9462b1806e.zip |
Return WERR_UNKNOWN_LEVEL for getprinterdriver level 6 as we don't
know how to decode a printer driver into a DRIVER_INFO_6 structure.
(This used to be commit 1338f623c2a1e539ee9ee5fedbaf16baf3eb171e)
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index caa2f2901b..448dc7ece5 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -767,6 +767,9 @@ WERROR cli_spoolss_getprinterdriver(struct cli_state *cli, case 3: decode_printer_driver_3(mem_ctx, r.buffer, 1, &ctr->info3); break; + default: + DEBUG(10, ("cli_spoolss_getprinterdriver: unknown info level %d", level)); + return WERR_UNKNOWN_LEVEL; } done: |