]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
_addresses_equal() needs the af
authorBob Halley <halley@nominum.com>
Fri, 19 Jun 2009 10:56:25 +0000 (11:56 +0100)
committerBob Halley <halley@nominum.com>
Fri, 19 Jun 2009 10:56:25 +0000 (11:56 +0100)
dns/query.py

index 81a78b43bfd3781a0e53aed3e10375b25c1203fe..15b5a90e29163b8f52be0b416c330a5688e71303 100644 (file)
@@ -135,7 +135,7 @@ def udp(q, where, timeout=None, port=53, af=None, source=None, source_port=0,
         while 1:
             _wait_for_readable(s, expiration)
             (wire, from_address) = s.recvfrom(65535)
-            if _addresses_equal(from_address, destination) or \
+            if _addresses_equal(af, from_address, destination) or \
                     (dns.inet.is_multicast(where) and \
                          from_address[1:] == destination[1:]):
                 break