From: Bob Halley Date: Fri, 19 Jun 2009 10:56:25 +0000 (+0100) Subject: _addresses_equal() needs the af X-Git-Tag: v1.7.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066101a9d9e27d01c23850fff4720906322aa9ab;p=thirdparty%2Fdnspython.git _addresses_equal() needs the af --- diff --git a/dns/query.py b/dns/query.py index 81a78b43..15b5a90e 100644 --- a/dns/query.py +++ b/dns/query.py @@ -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