mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
additional sanity check. secondaryDB cannot be closed.
This commit is contained in:
parent
9e28205502
commit
91116b629e
1 changed files with 1 additions and 0 deletions
|
|
@ -1172,6 +1172,7 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
|
||||||
makeTypeError("DB", (PyObject*)secondaryDB);
|
makeTypeError("DB", (PyObject*)secondaryDB);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
CHECK_DB_NOT_CLOSED(secondaryDB);
|
||||||
if (callback == Py_None) {
|
if (callback == Py_None) {
|
||||||
callback = NULL;
|
callback = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue