From: Bob Halley Date: Sat, 25 Jul 2020 19:46:35 +0000 (-0700) Subject: Remove checks already done by dns.dnssec.algorithm_from_text(). X-Git-Tag: v2.1.0rc1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b60f719c45eaf00212ef032753ada04cfa3323;p=thirdparty%2Fdnspython.git Remove checks already done by dns.dnssec.algorithm_from_text(). --- diff --git a/dns/rdtypes/ANY/CERT.py b/dns/rdtypes/ANY/CERT.py index 62df241c..3fce95b6 100644 --- a/dns/rdtypes/ANY/CERT.py +++ b/dns/rdtypes/ANY/CERT.py @@ -82,8 +82,6 @@ class CERT(dns.rdata.Rdata): certificate_type = _ctype_from_text(tok.get_string()) key_tag = tok.get_uint16() algorithm = dns.dnssec.algorithm_from_text(tok.get_string()) - if algorithm < 0 or algorithm > 255: - raise dns.exception.SyntaxError("bad algorithm type") b64 = tok.concatenate_remaining_identifiers().encode() certificate = base64.b64decode(b64) return cls(rdclass, rdtype, certificate_type, key_tag,