From: Joseph Sutton Date: Wed, 6 Sep 2023 04:34:00 +0000 (+1200) Subject: s3:winbindd: Add zero digit to literal X-Git-Tag: tevent-0.16.0~557 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41df712d18ec94bc73ff6f2e8c357e1c0bde3d2f;p=thirdparty%2Fsamba.git s3:winbindd: Add zero digit to literal Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/winbindd/idmap_hash/idmap_hash.c b/source3/winbindd/idmap_hash/idmap_hash.c index e9d90e3d02b..c2e835cf681 100644 --- a/source3/winbindd/idmap_hash/idmap_hash.c +++ b/source3/winbindd/idmap_hash/idmap_hash.c @@ -53,7 +53,7 @@ static uint32_t hash_domain_sid(const struct dom_sid *sid) hash value */ hash = (((hash & 0xFFF00000) >> 20) + ((hash & 0x000FFF00) >> 8) - + (hash & 0x000000FF)) & 0x0000FFF; + + (hash & 0x000000FF)) & 0x00000FFF; /* return a 12-bit hash value */