Skip to content

Commit

Permalink
Fix issue utelle#157
Browse files Browse the repository at this point in the history
Function sqlite3mcSetCodec used the wrong VFS pointer, if the Multiple Ciphers VFS shim is not the top level VFS in the VFS stack.
  • Loading branch information
utelle committed Jun 7, 2024
1 parent 02b69ad commit ec04fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlite3mc_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ SQLITE_PRIVATE void sqlite3mcSetCodec(sqlite3* db, const char* zDbName, const ch
sqlite3mc_vfs* pVfsMC = mcFindVfs(db, zDbName);
if (pVfsMC)
{
pDbMain = mcFindDbMainFileName((sqlite3mc_vfs*)(db->pVfs), zFileName);
pDbMain = mcFindDbMainFileName(pVfsMC, zFileName);
}
if (pDbMain)
{
Expand Down

0 comments on commit ec04fad

Please sign in to comment.