mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-21 07:10:43 -05:00
empty line fixup.
git-svn-id: file:///svn/unbound/trunk@952 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
00165cbe65
commit
ed224e1d64
2 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
- 0.9 released.
|
- 0.9 released.
|
||||||
- 1.0 development. Printout ldns version on unbound -h.
|
- 1.0 development. Printout ldns version on unbound -h.
|
||||||
- start of perf tool.
|
- start of perf tool.
|
||||||
|
- bugfix to read empty lines from /etc/hosts.
|
||||||
|
|
||||||
12 February 2008: Wouter
|
12 February 2008: Wouter
|
||||||
- fixup problem with configure calling itself if ldns-src tarball
|
- fixup problem with configure calling itself if ldns-src tarball
|
||||||
|
|
|
||||||
|
|
@ -878,6 +878,8 @@ ub_ctx_hosts(struct ub_ctx* ctx, char* fname)
|
||||||
/* skip addr */
|
/* skip addr */
|
||||||
while(isxdigit(*parse) || *parse == '.' || *parse == ':')
|
while(isxdigit(*parse) || *parse == '.' || *parse == ':')
|
||||||
parse++;
|
parse++;
|
||||||
|
if(*parse == '\n' || *parse == 0)
|
||||||
|
continue;
|
||||||
if(*parse != ' ' && *parse != '\t') {
|
if(*parse != ' ' && *parse != '\t') {
|
||||||
/* must have whitespace after address */
|
/* must have whitespace after address */
|
||||||
fclose(in);
|
fclose(in);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue