]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
ipblocklist-functions.pl: Abort and return code if a list is empty or
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 5 Mar 2022 09:01:24 +0000 (10:01 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:26:13 +0000 (17:26 +0200)
commitd7dd5653419bc9303a3745a96168a4f78cb8122e
tree0ed9e2cce49012b33679db08248eec286003b7d7
parent0a4f60f28c6f8954493732f0f57ab0b097faf842
ipblocklist-functions.pl: Abort and return code if a list is empty or
not parse-able.

In case the downloaded list is empty or the parser is not able to parse
it properly, the download_and_create_blocklist() function now exits and
will return "empty_list" as new error code.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl