]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix failures in isc netmgr_test on big endian machines
authorPetr Menšík <pemensik@redhat.com>
Tue, 24 May 2022 17:42:41 +0000 (19:42 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 24 May 2022 18:22:57 +0000 (20:22 +0200)
commitd074386ef1fbc0fd8e3c867cd51004061b390c42
tree483d9cb5c4a4db8778902138826f49d7d5a1fa9d
parent44c4ff2d2d0794eb1f265db0ed01e6f7505ed83b
Fix failures in isc netmgr_test on big endian machines

Typing from libuv structure to isc_region_t is not possible, because
their sizes differ on 64 bit architectures. Little endian machines seems
to be lucky and still result in test passed. But big endian machine such
as s390x fails the test reliably.

Fix by directly creating the buffer as isc_region_t and skipping the
type conversion. More readable and still more correct.

(cherry picked from commit 057438cb45f2f02615dc309e3822f23c0ca70a0a)
lib/isc/tests/netmgr_test.c