projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f60516f
)
fix ipv6 parsing. We would not properly handle empty blocks (i.e. ::).
author
Peter Palfrader
<peter@palfrader.org>
Thu, 16 May 2019 05:43:56 +0000
(07:43 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Thu, 16 May 2019 05:43:57 +0000
(07:43 +0200)
This worked before and got broken in
28c3209e235e0d637172a1c5acd1e4142a58f8da
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
32985d1
..
cd6b517
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-433,7
+433,7
@@
def DoDNS(Str, Attrs, DnRecord):
if p == "":
if seenEmptypart:
return "Invalid IPv6 address (%s): more than one :: (nothing in between colons) is not allowed" % (ipv6address)
- seenEmptypart = True
+
seenEmptypart = True
sanitized = "%s IN AAAA %s" % (hostname, ipv6address)
else:
raise UDFormatError("None of the types I recognize was it. I shouldn't be here. confused.")