From a9ca154a921f1523ee3e2f763f6a3db06acbd0ee Mon Sep 17 00:00:00 2001
From: Stuart Gathman <stuart@gathman.org>
Date: Thu, 29 Dec 2005 19:15:35 +0000
Subject: [PATCH] Handle NULL MX

---
 spf.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/spf.py b/spf.py
index 0afd6d1..82cb128 100755
--- a/spf.py
+++ b/spf.py
@@ -47,6 +47,9 @@ For news, bugfixes, etc. visit the home page for this implementation at
 # Terrence is not responding to email.
 #
 # $Log$
+# Revision 1.17  2005/12/23 21:44:15  customdesigned
+# Always include keyword data in Received-SPF header.
+#
 # Revision 1.16  2005/12/01 22:42:32  customdesigned
 # improve gossip support.
 # Initialize srs_domain from srs.srs config property.  Should probably
@@ -885,7 +888,9 @@ class query(object):
 
 	def dns_a(self, domainname):
 		"""Get a list of IP addresses for a domainname."""
-		return self.dns(domainname, 'A')
+		if domainname:
+		  return self.dns(domainname, 'A')
+		return []
 
 	def dns_aaaa(self, domainname):
 		"""Get a list of IPv6 addresses for a domainname."""
-- 
GitLab