empty line fixup.

git-svn-id: file:///svn/unbound/trunk@952 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-02-13 15:26:09 +00:00
parent 00165cbe65
commit ed224e1d64
2 changed files with 3 additions and 0 deletions

View 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

View 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);