From 6827b6ad512f359fd6bbca99f560eb86dd1cacd4 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 17 Dec 2017 01:46:32 +0300 Subject: [PATCH] Do not add hostnames less than 4 characters long --- blackwhitelist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blackwhitelist.c b/blackwhitelist.c index f7b6e8d..b04b6ff 100644 --- a/blackwhitelist.c +++ b/blackwhitelist.c @@ -72,6 +72,8 @@ int blackwhitelist_load_list(const char *filename) { line); continue; } + if (strlen(line) < 4) + continue; if (add_hostname(line)) cnt++; }