From: Gregory P. Smith Date: Mon, 6 Jun 2005 10:28:06 +0000 (+0000) Subject: additional sanity check. secondaryDB cannot be closed. X-Git-Tag: v2.5a0~1735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91116b629eaae56cd8302aee8c1940733c29d7a4;p=python additional sanity check. secondaryDB cannot be closed. --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 12bb76823f..9d1222b149 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; }