diff options
author | Tim Potter <tpot@samba.org> | 2002-05-20 08:05:27 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-05-20 08:05:27 +0000 |
commit | be92d4ac55caa3f44c5125cf4220bea4ca69e45e (patch) | |
tree | c694703c94b7d341b1954525aefc308266358f13 | |
parent | 1aa06209a155f453f55686f48e420432ff62892c (diff) | |
download | samba-be92d4ac55caa3f44c5125cf4220bea4ca69e45e.tar.gz samba-be92d4ac55caa3f44c5125cf4220bea4ca69e45e.tar.bz2 samba-be92d4ac55caa3f44c5125cf4220bea4ca69e45e.zip |
Decode info level 3 for getprinterdriver.
Error checking for undecoded info levels.
(This used to be commit 841b6cf63c1f22dcb8fa07796a44e20555fe5b59)
-rw-r--r-- | source3/python/py_spoolss_drivers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c index e95d548ef1..1626684a1b 100644 --- a/source3/python/py_spoolss_drivers.c +++ b/source3/python/py_spoolss_drivers.c @@ -210,11 +210,15 @@ PyObject *spoolss_hnd_getprinterdriver(PyObject *self, PyObject *args, case 2: py_from_DRIVER_INFO_2(&result, ctr.info2); break; + case 3: + py_from_DRIVER_INFO_3(&result, ctr.info3); + break; case 6: py_from_DRIVER_INFO_6(&result, ctr.info6); break; default: - break; + PyErr_SetString(spoolss_error, "unsupported info level"); + return NULL; } Py_INCREF(result); |