summaryrefslogtreecommitdiffstats
path: root/output/ulogd_output_SYSLOG.c
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-11-30 10:55:41 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2021-12-06 22:12:55 +0100
commitd429162387ce4fe12e7e35d911680cb1c37f2cd2 (patch)
treee40665b21aa597cb99dfc2242501dea6b677cc2b /output/ulogd_output_SYSLOG.c
parent0a9fa5603a435afed955f5458a17331b7f2f18ca (diff)
output: DBI: fix NUL-termination of escaped SQL string
On error, `dbi_conn_quote_string_copy` returns zero. In this case, we need to set `*dst` to NUL. Handle a return-value of `2` as normal below. `1` is never returned. Replace `strncpy` with `memcpy`: using `strncpy` is nearly always a mistake, and we don't need its special behaviour here. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'output/ulogd_output_SYSLOG.c')
0 files changed, 0 insertions, 0 deletions