summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2017-01-25 15:38:03 +0100
committerJan Cholasta <jcholast@redhat.com>2017-02-08 08:32:44 +0100
commita3d3b0ad2537c9d11d9c6108c31e079f0dfcf31c (patch)
treebede864a1da8038fb1f55a79482f0dbd3f6d1ca4 /ipaserver/plugins
parenta93b2bea5ce88a934ba2ab39bdaa518fb55064c4 (diff)
downloadfreeipa-a3d3b0ad2537c9d11d9c6108c31e079f0dfcf31c.tar.gz
freeipa-a3d3b0ad2537c9d11d9c6108c31e079f0dfcf31c.tar.xz
freeipa-a3d3b0ad2537c9d11d9c6108c31e079f0dfcf31c.zip
py3: _ptrrecord_precallaback: use bytes with labels
DNS labels are bytes so bytes must be used for comparison https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/dns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py
index 08f9c6dc1..0838161c3 100644
--- a/ipaserver/plugins/dns.py
+++ b/ipaserver/plugins/dns.py
@@ -3098,7 +3098,7 @@ class dnsrecord(LDAPObject):
# Classless zones (0/25.0.0.10.in-addr.arpa.) -> skip check
# zone has to be checked without reverse domain suffix (in-addr.arpa.)
- for sign in ('/', '-'):
+ for sign in (b'/', b'-'):
for name in (zone, addr):
for label in name.labels:
if sign in label: