]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Initialize received_time [ISSUE #228].
authorBob Halley <halley@dnspython.org>
Sat, 28 Jan 2017 13:29:34 +0000 (05:29 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 28 Jan 2017 13:29:34 +0000 (05:29 -0800)
dns/query.py

index daf36deabbeec4e1658cf44c2837fb2f1031fb89..507b9d2815ee89e477f6d4bc24eb6dde4b9874f8 100644 (file)
@@ -452,6 +452,7 @@ def tcp(q, where, timeout=None, port=53, af=None, source=None, source_port=0,
                                                         source, source_port)
     s = socket_factory(af, socket.SOCK_STREAM, 0)
     begin_time = None
+    received_time = None
     try:
         expiration = _compute_expiration(timeout)
         s.setblocking(0)