fw4: fix skipping invalid IPv6 ipset entries
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Jun 2022 13:21:01 +0000 (15:21 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Jun 2022 14:54:06 +0000 (16:54 +0200)
commit880dd31353c8db8bad4b193cc4928ba01ff29c78
treefbd15bbe6e4017a33f0c07ee689347e9afa769b2
parent11410b80eb9c442c4850cfc3034267f3f72a196c
fw4: fix skipping invalid IPv6 ipset entries

The current code did not account for invalid IPv6 entries yielding `null`
after subnet parsing, leading to an incorrect warning about multiple entries
and a subsequent `null` access leading to a crash.

Fix the issue by ensuring that the length check expression yields `0` on
invalid inputs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc