]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/dnsmasq/0022-Bad-packet-protection.patch
slang: Update to 2.3.0
[people/pmueller/ipfire-2.x.git] / src / patches / dnsmasq / 0022-Bad-packet-protection.patch
1 From 0b1008d367d44e77352134a4c5178f896f0db3e7 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Sat, 27 Dec 2014 15:33:32 +0000
4 Subject: [PATCH 22/98] Bad packet protection.
5
6 ---
7 src/dnssec.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/src/dnssec.c b/src/dnssec.c
11 index 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 --
24 2.1.0
25