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 == '%')