Allow sqlite3_interrupt() to be invoked on a database connection that is in
the process of being closed even if SQLITE_ENABLE_API_ARMOR is defined.
FossilOrigin-Name: 7854bee260996087bdb7f8729ba8cfb4f467f93f
diff --git a/src/main.c b/src/main.c
index 244ac0f..ffb1bc2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1568,7 +1568,7 @@
*/
void sqlite3_interrupt(sqlite3 *db){
#ifdef SQLITE_ENABLE_API_ARMOR
- if( !sqlite3SafetyCheckOk(db) ){
+ if( !sqlite3SafetyCheckOk(db) && (db==0 || db->magic!=SQLITE_MAGIC_ZOMBIE) ){
(void)SQLITE_MISUSE_BKPT;
return;
}