Skip to content

Commit

Permalink
Fix resolv.conf parsing with comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 8, 2015
1 parent 5d3d95e commit 0688254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ rdns_resolver_conf_process_line (struct rdns_resolver *resolver, char *line)
if (has_obrace && *p != ']') {
return false;
}
else if (*p != '\0' && *p != '\n') {
else if (*p != '\0' && !isspace (*p) && *p != '#') {
return false;
}
*p = '\0';
Expand Down

0 comments on commit 0688254

Please sign in to comment.