Commit 6c5d90e4 authored by Alexandre's avatar Alexandre
Browse files

[DoT] Pull FormError exception up to testing function

parent 6cc26f8b
......@@ -533,6 +533,9 @@ class ConnectionDoT(Connection):
response = dns.message.from_wire(buf)
except dns.exception.FormError:
if check: # if running --check, the Exception is handled in the
# test fonction run_check_trunc
raise dns.exception.FormError
response = 'Received DNS message is malformed'
ok = False
if self.verbose and not dump:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment