aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-01 19:55:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-11-01 19:55:26 +0300
commit1ce9ce321a4d4076504adfbf2503364768d5124f (patch)
treeeb06bd9b56bbdadaf4304234680e7c6c1f92bd18 /src/dns.c
parenteac815c8914e12640430caf6e6b1b495c24404ad (diff)
downloadrspamd-1ce9ce321a4d4076504adfbf2503364768d5124f.tar.gz
rspamd-1ce9ce321a4d4076504adfbf2503364768d5124f.zip
When parsing RRs 'eat' last '.' symbol
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.c b/src/dns.c
index 74a765b33..4070c4905 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -744,7 +744,7 @@ dns_parse_labels (guint8 *in, gchar **target, guint8 **pos, struct rspamd_dns_re
p += *p + 1;
}
}
- *t = '\0';
+ *(t - 1) = '\0';
end:
if (offset < 0) {
offset = p - begin;