From: Alan T. DeKok Date: Sat, 14 Feb 2026 14:24:18 +0000 (-0500) Subject: reorder operations for "update" to match "hash" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=500fef759b96fda52ea26a5bed024352ca7c4de7;p=thirdparty%2Ffreeradius-server.git reorder operations for "update" to match "hash" --- diff --git a/src/lib/util/hash.c b/src/lib/util/hash.c index 19967307917..c6617986f9a 100644 --- a/src/lib/util/hash.c +++ b/src/lib/util/hash.c @@ -856,8 +856,8 @@ uint32_t fr_hash_update(void const *data, size_t size, uint32_t hash) q = p + size; while (p < q) { - hash *= FNV_MAGIC_PRIME; hash ^= (uint32_t) (*p++); + hash *= FNV_MAGIC_PRIME; } return hash; @@ -943,8 +943,8 @@ uint64_t fr_hash64_update(void const *data, size_t size, uint64_t hash) q = p + size; while (p < q) { - hash *= FNV_MAGIC_PRIME; hash ^= (uint64_t) (*p++); + hash *= FNV_MAGIC_PRIME; } return hash;