summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-11-30 10:55:45 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-12-06 22:32:06 +0100
commit6709f6b52cdd63d2c9b246b7fc6bfb57c4f18e00 (patch)
tree200f127cac454009cb259dc406e527849cad329a /contrib
parent754d178b53a913b2ff4e2259cbca068a14a19777 (diff)
output: PGSQL: fix non-`connstring` configuration of DB connection
In `open_db_pgsql`, 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. Use a pointer to the end of the `connstr` buffer and `sprintf`, rather than repeated `strcat`s. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions