]> source.dussan.org Git - rspamd.git/commitdiff
When parsing RRs 'eat' last '.' symbol
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 1 Nov 2010 16:55:26 +0000 (19:55 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 1 Nov 2010 16:55:26 +0000 (19:55 +0300)
src/dns.c

index 74a765b336753f76d09832927a9822bb8134987f..4070c4905b7935bd21417eff977bbe48134cddcd 100644 (file)
--- 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;