forked from cory/tildefriends
Call out restricted DB access when we acquire the reader.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4429 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -2178,6 +2178,14 @@ sqlite3* tf_ssb_acquire_db_reader(tf_ssb_t* ssb)
|
||||
}
|
||||
tf_trace_sqlite(ssb->trace, db);
|
||||
uv_mutex_unlock(&ssb->db_readers_lock);
|
||||
sqlite3_set_authorizer(db, NULL, NULL);
|
||||
return db;
|
||||
}
|
||||
|
||||
sqlite3* tf_ssb_acquire_db_reader_restricted(tf_ssb_t* ssb)
|
||||
{
|
||||
sqlite3* db = tf_ssb_acquire_db_reader(ssb);
|
||||
sqlite3_set_authorizer(db, tf_ssb_sqlite_authorizer, ssb);
|
||||
return db;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user