mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 04:10:09 +03:00
Added guard on params with no length on callproc
This commit is contained in:
parent
e53c738fec
commit
61696b0603
|
@ -1042,9 +1042,8 @@ psyco_curs_callproc(cursorObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
if (parameters != Py_None) {
|
||||
nparameters = PyObject_Length(parameters);
|
||||
if (nparameters < 0) {
|
||||
nparameters = 0;
|
||||
if (-1 == (nparameters = PyObject_Length(parameters))) {
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user