Skip to content

Commit

Permalink
suricata/lua: fix sqlite3 scope
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Jul 15, 2024
1 parent 28a4b1b commit 45d22a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suricata/suricata-tcp-payload-sqlite-output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function setup (args)
SCLogNotice("Initializing plugin TCP payload SQLite Output; author=ANSSI; license=GPL-2.0")

-- open database in WAL mode and init schema
local sqlite3 = require("lsqlite3")
sqlite3 = require("lsqlite3")
database = sqlite3.open(SCLogPath() .. "/payload.db")
assert(database:exec([[
PRAGMA journal_mode=wal;
Expand Down
2 changes: 1 addition & 1 deletion suricata/suricata-udp-payload-sqlite-output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function setup (args)
SCLogNotice("Initializing plugin UDP payload SQLite Output; author=ANSSI; license=GPL-2.0")

-- open database in WAL mode and init schema
local sqlite3 = require("lsqlite3")
sqlite3 = require("lsqlite3")
database = sqlite3.open(SCLogPath() .. "/payload.db")
assert(database:exec([[
PRAGMA journal_mode=wal;
Expand Down

0 comments on commit 45d22a9

Please sign in to comment.