]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
output: SQLITE3: catch errors creating SQL statement
authorJeremy Sowden <jeremy@azazel.net>
Tue, 30 Nov 2021 10:55:51 +0000 (10:55 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 3 Jan 2022 15:29:56 +0000 (16:29 +0100)
commitdd80349ac72244049ab8f57023ab5d362e3843f1
treee1e120a059eb56356d40db8ba89fd2a6909b6a0c
parent67b0be90f16f12b875a70e7a5ae10c5a7b584ece
output: SQLITE3: catch errors creating SQL statement

`sqlite3_createstmt` returns non-zero on error, but the return-value was
being ignored.  Change the calling code to check the return-value, log
an error message and propagate the error.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
output/sqlite3/ulogd_output_SQLITE3.c