]> git.ipfire.org Git - people/stevee/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>
Sat, 7 May 2022 09:31:33 +0000 (11:31 +0200)
commit4cdc1263eb84e791d3d63e03cc619c5dea5518f5
tree566d34461283ae8ac36f8e16c4c8e7a79f13b41d
parent89c81c56476cfc5f2657b9d3a69ee35997e2c13f
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