Skip to content

Commit

Permalink
Do not add hostnames less than 4 characters long
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Dec 16, 2017
1 parent 60e87f7 commit 6827b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blackwhitelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ int blackwhitelist_load_list(const char *filename) {
line);
continue;
}
if (strlen(line) < 4)
continue;
if (add_hostname(line))
cnt++;
}
Expand Down

0 comments on commit 6827b6a

Please sign in to comment.