diff --git a/libyara/tlshc/tlsh_impl.c b/libyara/tlshc/tlsh_impl.c index 313a4946..36fa4db8 100644 --- a/libyara/tlshc/tlsh_impl.c +++ b/libyara/tlshc/tlsh_impl.c @@ -874,14 +874,7 @@ const char *hash2( tmp.checksum[k] = swap_byte(impl->lsh_bin.checksum[k]); } tmp.lvalue = swap_byte(impl->lsh_bin.lvalue); - -#if defined(WORDS_BIGENDIAN) - // In big endian architectures swapping the bytes is not necessary, as they - // are already swapped. See: https://github.com/VirusTotal/yara/issues/1874 - tmp.Q.qb = impl->lsh_bin.Q.qb; -#else tmp.Q.qb = swap_byte(impl->lsh_bin.Q.qb); -#endif for (int i = 0; i < CODE_SIZE; i++) {