From 6d590f0a2e1b8757a63ca8c9e71584e63d598696 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 28 Jan 2017 05:29:34 -0800 Subject: [PATCH] Initialize received_time [ISSUE #228]. --- dns/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dns/query.py b/dns/query.py index daf36dea..507b9d28 100644 --- a/dns/query.py +++ b/dns/query.py @@ -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) -- 2.47.3