]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix TTL limiting.
authorBrian Wellington <bwelling@xbill.org>
Thu, 25 Jun 2020 00:04:59 +0000 (17:04 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 25 Jun 2020 00:07:46 +0000 (17:07 -0700)
commit903b4f7298c06264c3eb9c57e50e15c733a58ffb
treeb07ae38a27b42e739719ad96170d0f9d98fb2892
parenta02c330e4f394f4e5200266ce1b145b9a1731262
Fix TTL limiting.

The message code would convert negative TTL into 0, but the TTL could
never be negative, as it was read with the '!I' format, which reads
unsigned 32 bit integers.  We don't want to change that, since OPT flags
(which are encoded in the TTL) should be treated as unsigned.  Instead,
treat all TTLs > (2^31 - 1) as 0.
dns/message.py