]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
output: DBI: fix configuration of DB connection
authorJeremy Sowden <jeremy@azazel.net>
Tue, 30 Nov 2021 10:55:42 +0000 (10:55 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Dec 2021 21:27:45 +0000 (22:27 +0100)
commit23dcfc558ecfcf7cc7ef8a002dea8a3ac31f0335
treee1b932a79c2acf94681aae7b7c4b60b7a50ac7b0
parentd429162387ce4fe12e7e35d911680cb1c37f2cd2
output: DBI: fix configuration of DB connection

In `open_db_dbi`, we test whether various config-settings are defined
by comparing their string values to `NULL`.  However, the `u.string`
member of `struct config_entry` is an array, not a pointer, so it is
never `NULL`.  Instead, check whether the string is empty.

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