aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2021-01-01 16:43:26 +0000
committerdrh <drh@noemail.net>2021-01-01 16:43:26 +0000
commit69e856ae66f867f3c67f5d88bc5e134ced43fd69 (patch)
treedcd6e8c0d6df0dde24d91db32c194fc624d618af /src
parent33e1ec224ecc953eb2f24f1b5cf4cbe35f99a44e (diff)
downloadsqlite-69e856ae66f867f3c67f5d88bc5e134ced43fd69.tar.gz
sqlite-69e856ae66f867f3c67f5d88bc5e134ced43fd69.zip
Streamline processing of the authenticator callback for the common case
when there is no callback. FossilOrigin-Name: d3196685d958bf22b5c362e96bbf8e1df58cc09cc3abc4bfa94bb33bc28c61aa
Diffstat (limited to 'src')
-rw-r--r--src/auth.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/auth.c b/src/auth.c
index 40673d5ea..83451c29a 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -209,11 +209,7 @@ int sqlite3AuthCheck(
** or if the parser is being invoked from within sqlite3_declare_vtab.
*/
assert( !IN_RENAME_OBJECT || db->xAuth==0 );
- if( db->init.busy || IN_SPECIAL_PARSE ){
- return SQLITE_OK;
- }
-
- if( db->xAuth==0 ){
+ if( db->xAuth==0 || db->init.busy || IN_SPECIAL_PARSE ){
return SQLITE_OK;
}