From cdeb81f21968531a8c3738bf644093cd7e3149e1 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 7 Apr 2015 07:54:30 +0000 Subject: [PATCH] And skip dos-newlines for only addrs on line. git-svn-id: file:///svn/unbound/trunk@3385 be551aaa-1e26-0410-a405-d3ace91eadb9 --- libunbound/libunbound.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 546fb5ddf..37288f256 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -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 == '%')