Browse Source

Fix resolv.conf parsing with comments.

tags/0.9.0
Vsevolod Stakhov 9 years ago
parent
commit
05d4142379
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      contrib/librdns/util.c

+ 1
- 1
contrib/librdns/util.c View File

@@ -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';

Loading…
Cancel
Save