summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-08 14:03:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-08 14:03:08 +0100
commit05d414237995f72d57e4a0b38a5252589039867b (patch)
treea8d0338c29a9d34566e7806802a5dc286328780d /contrib
parent44f42b7dc338ed22bf08f4fd862fa1812c7e110f (diff)
downloadrspamd-05d414237995f72d57e4a0b38a5252589039867b.tar.gz
rspamd-05d414237995f72d57e4a0b38a5252589039867b.zip
Fix resolv.conf parsing with comments.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 7d9dc98d4..974c97554 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -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';