fw4: fix skipping invalid ipset entries
authorJo-Philipp Wich <jo@mein.io>
Thu, 21 Apr 2022 19:10:26 +0000 (21:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 21 Apr 2022 19:11:59 +0000 (21:11 +0200)
commit9bce87374e7ecee5ab29bb210df6691f1b701229
tree3222fdc84e945390ea1eec79e9d02772509f1bd9
parent425ea8a736ac81948bad7e201f4817848cb1813c
fw4: fix skipping invalid ipset entries

The current code did not account for invalid entires 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