From 1ce9ce321a4d4076504adfbf2503364768d5124f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 Nov 2010 19:55:26 +0300 Subject: [PATCH] When parsing RRs 'eat' last '.' symbol --- src/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5