summaryrefslogtreecommitdiffstats
path: root/output/mysql/ulogd_output_MYSQL.c
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-11-30 10:55:42 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-12-06 22:27:45 +0100
commit23dcfc558ecfcf7cc7ef8a002dea8a3ac31f0335 (patch)
treee1b932a79c2acf94681aae7b7c4b60b7a50ac7b0 /output/mysql/ulogd_output_MYSQL.c
parentd429162387ce4fe12e7e35d911680cb1c37f2cd2 (diff)
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>
Diffstat (limited to 'output/mysql/ulogd_output_MYSQL.c')
0 files changed, 0 insertions, 0 deletions