]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/dnsmasq-2.73-bad-packet-protection.patch
Merge remote-tracking branch 'glotzi/monit' into next
[ipfire-2.x.git] / src / patches / dnsmasq / dnsmasq-2.73-bad-packet-protection.patch
CommitLineData
b56472d4
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
4Subject: [PATCH] Bad packet protection.
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 ed8cf89..026794b 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--
241.7.10.4
25