From: Bob Halley Date: Tue, 2 Jun 2020 14:30:47 +0000 (-0700) Subject: bail out early on ShortHeader X-Git-Tag: v2.0.0rc1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014f40b8bcbf141e307d695620f3adc9ad2b24c6;p=thirdparty%2Fdnspython.git bail out early on ShortHeader --- 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: