]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Breakout at end.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Aug 2018 09:07:31 +0000 (09:07 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Aug 2018 09:07:31 +0000 (09:07 +0000)
git-svn-id: file:///svn/unbound/trunk@4845 be551aaa-1e26-0410-a405-d3ace91eadb9

smallapp/unbound-checkconf.c

index 770cb5c355441f20e6dea985bf760cc2f7eba991..ea46479172c014bbb97e61385802c54a2601db65 100644 (file)
@@ -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;