]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Bad packet protection.
authorSimon Kelley <simon@thekelleys.org.uk>
Sat, 27 Dec 2014 15:33:32 +0000 (15:33 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Sat, 27 Dec 2014 15:33:32 +0000 (15:33 +0000)
src/dnssec.c

index ed8cf893bad24ed763d41762d44acb6c055befbf..026794b077e5280d33e5dd74ca90c0add891e833 100644 (file)
@@ -805,7 +805,7 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
                {
                  while (*name_start != '.' && *name_start != 0)
                    name_start++;
-                 if (k != 1)
+                 if (k != 1 && *name_start == '.')
                    name_start++;
                }