Commit 7b69dfeb authored by Uladzimir Trehubenka's avatar Uladzimir Trehubenka Committed by Miek Gieben

plugin/file: fix panic in miekg/dns.CompareDomainName() (#3337)

Signed-off-by: default avatarutrehubenka <utrehubenka@infoblox.com>
parent 4ffbee29
......@@ -372,7 +372,7 @@ func (z *Zone) additionalProcessing(answer []dns.RR, do bool) (extra []dns.RR) {
case *dns.MX:
name = x.Mx
}
if !dns.IsSubDomain(z.origin, name) {
if len(name) == 0 || !dns.IsSubDomain(z.origin, name) {
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment