From: Vsevolod Stakhov Date: Mon, 1 Nov 2010 16:55:26 +0000 (+0300) Subject: When parsing RRs 'eat' last '.' symbol X-Git-Tag: 0.3.3~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ce9ce321a4d4076504adfbf2503364768d5124f;p=rspamd.git When parsing RRs 'eat' last '.' symbol --- 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;