]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
empty line fixup.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Feb 2008 15:26:09 +0000 (15:26 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Feb 2008 15:26:09 +0000 (15:26 +0000)
git-svn-id: file:///svn/unbound/trunk@952 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/libunbound.c

index 794f1140b9086b59842c021a7f0656e6f8e64ac0..85e043d4acef2df095aefbf1fbb3045ec07de192 100644 (file)
@@ -2,6 +2,7 @@
        - 0.9 released.
        - 1.0 development. Printout ldns version on unbound -h.
        - start of perf tool.
+       - bugfix to read empty lines from /etc/hosts.
 
 12 February 2008: Wouter
        - fixup problem with configure calling itself if ldns-src tarball
index 2b694dac174e812413e1bee0f366ae13dad80b2b..0e7d702561f02122e8e6e4846e094fe2dd8e6f5b 100644 (file)
@@ -878,6 +878,8 @@ ub_ctx_hosts(struct ub_ctx* ctx, char* fname)
                /* skip addr */
                while(isxdigit(*parse) || *parse == '.' || *parse == ':')
                        parse++;
+               if(*parse == '\n' || *parse == 0)
+                       continue;
                if(*parse != ' ' && *parse != '\t') {
                        /* must have whitespace after address */
                        fclose(in);