]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0022-Bad-packet-protection.patch
Merge remote-tracking branch 'stevee/core-90-geoip' into next
[ipfire-2.x.git] / src / patches / dnsmasq / 0022-Bad-packet-protection.patch
CommitLineData
6644c1c7
MT
1From 0b1008d367d44e77352134a4c5178f896f0db3e7 Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Sat, 27 Dec 2014 15:33:32 +0000
d54a2ce4 4Subject: [PATCH 22/78] Bad packet protection.
6644c1c7
MT
5
6---
7 src/dnssec.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/src/dnssec.c b/src/dnssec.c
11index ed8cf893bad2..026794b077e5 100644
12--- a/src/dnssec.c
13+++ b/src/dnssec.c
14@@ -805,7 +805,7 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
15 {
16 while (*name_start != '.' && *name_start != 0)
17 name_start++;
18- if (k != 1)
19+ if (k != 1 && *name_start == '.')
20 name_start++;
21 }
22
23--
242.1.0
25