From 014f40b8bcbf141e307d695620f3adc9ad2b24c6 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 2 Jun 2020 07:30:47 -0700 Subject: [PATCH] bail out early on ShortHeader --- tests/nanonameserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/nanonameserver.py b/tests/nanonameserver.py index a14d9259..850d7482 100644 --- a/tests/nanonameserver.py +++ b/tests/nanonameserver.py @@ -136,6 +136,9 @@ class Server(threading.Thread): r = None try: q = dns.message.from_wire(wire) + except dns.message.ShortHeader: + # There is no hope of answering this one! + return None except Exception: # Try to make a FORMERR using just the question section. try: -- 2.47.3