]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
And skip dos-newlines for only addrs on line.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 7 Apr 2015 07:54:30 +0000 (07:54 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 7 Apr 2015 07:54:30 +0000 (07:54 +0000)
git-svn-id: file:///svn/unbound/trunk@3385 be551aaa-1e26-0410-a405-d3ace91eadb9

libunbound/libunbound.c

index 546fb5ddfd827ba84f86a0601ddf74446385109b..37288f256eeea5c567e7c557de882b5eeda9385c 100644 (file)
@@ -1053,6 +1053,8 @@ ub_ctx_hosts(struct ub_ctx* ctx, const char* fname)
                /* skip addr */
                while(isxdigit((unsigned char)*parse) || *parse == '.' || *parse == ':')
                        parse++;
+               if(*parse == '\r')
+                       parse++;
                if(*parse == '\n' || *parse == 0)
                        continue;
                if(*parse == '%')