aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.c b/src/dns.c
index 3b97fca5f..50dc7dea0 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -703,7 +703,7 @@ dns_parse_labels (guint8 *in, char **target, guint8 **pos, struct rspamd_dns_rep
}
begin = l;
p = l + *l + 1;
- namelen += *p;
+ namelen += *l;
labels ++;
}
else {