]> git.ipfire.org Git - thirdparty/dnspython.git/commit
The EDNS0 client-subnet code didn't work correctly for addresses that
authorBob Halley <halley@dnspython.org>
Fri, 3 May 2019 15:17:54 +0000 (08:17 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 3 May 2019 15:17:54 +0000 (08:17 -0700)
commitf5df40956ab8c380370b66363149908e2aaa1d6d
tree7ff2a65257533b7f0921af4850fc73e6f3e881a6
parentaab95c61d554dcf8bc2cf991811165a320991b8c
The EDNS0 client-subnet code didn't work correctly for addresses that
were not a multiple of 8 bits.

Instead of preserving the required number of high-order bits, it
cleared that number of low-order bits.  Thanks to Brian Wellington for
discovering this and providing the correct code.
dns/edns.py
tests/test_edns.py