Skip to content
Snippets Groups Projects
Commit d119af1a authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Trean non-existant include as no match in "lax" mode.

parent f1f082fe
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,9 @@ For news, bugfixes, etc. visit the home page for this implementation at ...@@ -47,6 +47,9 @@ For news, bugfixes, etc. visit the home page for this implementation at
# Terrence is not responding to email. # Terrence is not responding to email.
# #
# $Log$ # $Log$
# Revision 1.13 2005/07/22 16:00:23 customdesigned
# Limit CNAME chains independently of DNS lookup limit
#
# Revision 1.31 2005/07/22 02:11:50 customdesigned # Revision 1.31 2005/07/22 02:11:50 customdesigned
# Use dictionary to check for CNAME loops. Check limit independently for # Use dictionary to check for CNAME loops. Check limit independently for
# each top level name, just like for PTR. # each top level name, just like for PTR.
...@@ -632,9 +635,15 @@ class query(object): ...@@ -632,9 +635,15 @@ class query(object):
if res == 'pass': if res == 'pass':
break break
if res == 'none': if res == 'none':
try:
if self.strict or not self.perm_error:
raise PermError( raise PermError(
'No valid SPF record for included domain: %s'%arg, 'No valid SPF record for included domain: %s'%arg,
mech) mech)
except PermError,x:
if self.strict:
raise x
self.perm_error = x
continue continue
elif m == 'all': elif m == 'all':
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment