summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-20 08:05:27 +0000
committerTim Potter <tpot@samba.org>2002-05-20 08:05:27 +0000
commitbe92d4ac55caa3f44c5125cf4220bea4ca69e45e (patch)
treec694703c94b7d341b1954525aefc308266358f13 /source3/python
parent1aa06209a155f453f55686f48e420432ff62892c (diff)
downloadsamba-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)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_spoolss_drivers.c6
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);