summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_bsddb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 12bb768..9d1222b 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -1172,6 +1172,7 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
makeTypeError("DB", (PyObject*)secondaryDB);
return NULL;
}
+ CHECK_DB_NOT_CLOSED(secondaryDB);
if (callback == Py_None) {
callback = NULL;
}