]> 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:23:04 +0000 (20:23 +0200)
commit1feb389f80f7595d2f873c3ff8678b52cd2db828
treecb90b65119e6729d88f7c4f3218bc5391ae21670
parent66ecde5b2779b6cd06be34826fd81439f36d8691
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