]> granicus.if.org Git - python/commitdiff
additional sanity check. secondaryDB cannot be closed.
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 6 Jun 2005 10:28:06 +0000 (10:28 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 6 Jun 2005 10:28:06 +0000 (10:28 +0000)
Modules/_bsddb.c

index 12bb76823f9dab3ed622296b6c05bbc7c5e38325..9d1222b149a3cc376a099a459bf604eb80f7e1da 100644 (file)
@@ -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;
     }