]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
sqlite3: insert ipv6 addresses as null rather than garbage
authorJeremy Sowden <jeremy@azazel.net>
Mon, 21 Aug 2023 19:42:36 +0000 (20:42 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 14 Sep 2023 12:22:49 +0000 (14:22 +0200)
commit083d56967d3940a3a29d11c881d1b78e6033c24f
tree260a2df93c7e57d0a8962d0d7992f34fadf50939
parent40517221e15e7518980b582cecf290bc5880064e
sqlite3: insert ipv6 addresses as null rather than garbage

Currently, the plug-in assumes that all IP addresses are 32-bit ipv4
addresses, so ipv6 addresses get truncated and inserted as garbage.
Insert nulls instead.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
output/sqlite3/ulogd_output_SQLITE3.c