Fixes name for unnamed filters.
Thanks to Alexander V. Chernikov for the suggestion.
This commit is contained in:
parent
7d837aa014
commit
8796a8a56e
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ filter_name(struct filter *filter)
|
|||
return "ACCEPT";
|
||||
else if (filter == FILTER_REJECT)
|
||||
return "REJECT";
|
||||
else if (!filter->name)
|
||||
return "(unnamed)";
|
||||
else
|
||||
return filter->name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue