diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2005-06-06 10:28:06 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2005-06-06 10:28:06 (GMT) |
commit | 91116b629eaae56cd8302aee8c1940733c29d7a4 (patch) | |
tree | e40cd32dd9d6a276dd77758bfe54c5bacea210ef | |
parent | 9e282055026eb01825060593d7b5d866e45d0d92 (diff) | |
download | cpython-91116b629eaae56cd8302aee8c1940733c29d7a4.zip cpython-91116b629eaae56cd8302aee8c1940733c29d7a4.tar.gz cpython-91116b629eaae56cd8302aee8c1940733c29d7a4.tar.bz2 |
additional sanity check. secondaryDB cannot be closed.
-rw-r--r-- | Modules/_bsddb.c | 1 |
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; } |