From b2a8e274755df081767745b6439e8eb29ac4c9bc Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 23 Jun 2008 21:57:35 -0400 Subject: [PATCH] Empty the authority and additional sections to prevent infinite loops if there is no response svn path=/trunk/packages/sipb-xen-dns/; revision=650 --- code/dnsserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/dnsserver.py b/code/dnsserver.py index 9da9eda..ae46d4c 100755 --- a/code/dnsserver.py +++ b/code/dnsserver.py @@ -87,6 +87,9 @@ class DatabaseAuthority(common.ResolverBase): elif type == dns.SOA: results.append(dns.RRHeader(domain, dns.SOA, dns.IN, ttl, self.soa, auth=True)) + if len(results) == 0: + authority = [] + additional = [] return defer.succeed((results, authority, additional)) else: #Doesn't exist -- 1.7.9.5