s3:winbindd: Add zero digit to literal
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 6 Sep 2023 04:34:00 +0000 (16:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2023 21:35:29 +0000 (21:35 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/idmap_hash/idmap_hash.c

index e9d90e3d02b19e2ca045d973da8eab4544518a56..c2e835cf6816ca37146084b4fecdbd87d83b5d99 100644 (file)
@@ -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 */