do not return error if a rules statements generated no rules - it breaks sourcing of config file if the last rule statement generates no rules

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-01-31 15:38:12 +02:00
parent 1eef048246
commit e5def6100b

@ -1461,7 +1461,7 @@ rules() {
if [ "${#mark[*]}${#tos[*]}${#src[*]}${#dst[*]}${#inface[*]}" = "00000" ]
then
warning "No rules generated."
return 1
return 0
fi
if [ ! -z "${table}" ]