]> 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)
committerPetr Menšík <pemensik@redhat.com>
Tue, 24 May 2022 17:51:30 +0000 (19:51 +0200)
commit057438cb45f2f02615dc309e3822f23c0ca70a0a
treee43b952d8f4009525da7d359e3c1b7df33fc81a7
parentd50cb13d4d5f853d175256f1081c60a72f6dc21c
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.
lib/isc/tests/netmgr_test.c