From 863a5a043fc4f43fd5c3c63cf1cda94d453a7351 Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Sat, 4 Oct 2014 19:31:47 -0400 Subject: [PATCH] Don't populate the authority or additional sections in responses to queries for unimplemented record types. --- debian/changelog | 7 +++++++ invirt-dns | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index f42e700..3abce31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-dns (0.0.17) precise; urgency=low + + * Don't populate the authority or additional sections in responses + to queries for unimplemented record types. + + -- Mitchell Berger Sat, 04 Oct 2014 17:31:00 -0400 + invirt-dns (0.0.16) precise; urgency=low * Be tolerant of requests for record types that have not been diff --git a/invirt-dns b/invirt-dns index 8cd8337..ed0ab01 100755 --- a/invirt-dns +++ b/invirt-dns @@ -238,8 +238,7 @@ class TypeLenientResolverChain(resolve.ResolverChain): deferredResult = self.lookupAllRecords(str(query.name), timeout) if isinstance(deferredResult.result, failure.Failure): return deferredResult - (results, authority, additional) = deferredResult.result - return defer.succeed(([], authority, additional)) + return defer.succeed(([], [], [])) if '__main__' == __name__: resolvers = [] -- 1.7.9.5