From 91116b629eaae56cd8302aee8c1940733c29d7a4 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 6 Jun 2005 10:28:06 +0000 Subject: [PATCH] additional sanity check. secondaryDB cannot be closed. --- Modules/_bsddb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 12bb76823f9..9d1222b149a 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; }