]> 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, 5 Mar 2022 18:37:21 +0000 (19:37 +0100)
commit31df8f5d5924dbd92f88d2592b86ff949fefb6bd
tree78387aee562335ce8be64253b6c8dbf02a441f0c
parent4fcc51b959866b65ce5f10f577c19ed65dd2b0e2
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