diff --git a/smallapp/unbound-checkconf.c b/smallapp/unbound-checkconf.c index 770cb5c35..ea4647917 100644 --- a/smallapp/unbound-checkconf.c +++ b/smallapp/unbound-checkconf.c @@ -402,6 +402,7 @@ check_modules_exist(const char* module_conf) int is_ok = 0; while(*s && isspace((unsigned char)*s)) s++; + if(!*s) break; while(names[i]) { if(strncmp(names[i], s, strlen(names[i])) == 0) { is_ok = 1;