Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91116b6

Browse files
committed
additional sanity check. secondaryDB cannot be closed.
1 parent 9e28205 commit 91116b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_bsddb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
11721172
makeTypeError("DB", (PyObject*)secondaryDB);
11731173
return NULL;
11741174
}
1175+
CHECK_DB_NOT_CLOSED(secondaryDB);
11751176
if (callback == Py_None) {
11761177
callback = NULL;
11771178
}

0 commit comments

Comments
 (0)