Skip to content

Commit

Permalink
Fix issue utelle#145
Browse files Browse the repository at this point in the history
Set globalCipherCount to 0 in function sqlite3mcTermCipherTables, so that the SQLite initialization and termination code can be called multiple times in an application without causing problems.

Typically, the SQLite initialization and termination code should be called only once, at starting an application and at terminating an application.
  • Loading branch information
utelle committed Mar 19, 2024
1 parent 3bb0339 commit f1543a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sqlite3mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
** Purpose: Amalgamation of the SQLite3 Multiple Ciphers encryption extension for SQLite
** Author: Ulrich Telle
** Created: 2020-02-28
** Copyright: (c) 2006-2022 Ulrich Telle
** Copyright: (c) 2006-2024 Ulrich Telle
** License: MIT
*/

Expand Down Expand Up @@ -662,6 +662,7 @@ sqlite3mcTermCipherTables()
sqlite3_free(globalCodecParameterTable[n].m_params);
}
}
globalCipherCount = 0;
}

int
Expand Down

0 comments on commit f1543a7

Please sign in to comment.