summaryrefslogtreecommitdiffstats
path: root/Modules/_bsddb.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2005-06-06 10:28:06 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2005-06-06 10:28:06 (GMT)
commit91116b629eaae56cd8302aee8c1940733c29d7a4 (patch)
treee40cd32dd9d6a276dd77758bfe54c5bacea210ef /Modules/_bsddb.c
parent9e282055026eb01825060593d7b5d866e45d0d92 (diff)
downloadcpython-91116b629eaae56cd8302aee8c1940733c29d7a4.zip
cpython-91116b629eaae56cd8302aee8c1940733c29d7a4.tar.gz
cpython-91116b629eaae56cd8302aee8c1940733c29d7a4.tar.bz2
additional sanity check. secondaryDB cannot be closed.
Diffstat (limited to 'Modules/_bsddb.c')
-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;
}