libcli/security/privileges.c - fix wrong counter type
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 16 Feb 2011 08:12:17 +0000 (09:12 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 21 Feb 2011 09:43:43 +0000 (10:43 +0100)
This strictly needs to be from type "uint32_t" since "privset->count"
is defined with this type.

libcli/security/privileges.c

index 1e18b44baa91d6d7b06a0c2421d898ea1c54d033..adb67c19f2d62c1f2fa7eec158a1748305c468da 100644 (file)
@@ -296,7 +296,7 @@ bool se_priv_to_privilege_set( PRIVILEGE_SET *set, uint64_t privilege_mask )
 
 bool privilege_set_to_se_priv( uint64_t *privilege_mask, struct lsa_PrivilegeSet *privset )
 {
-       int i;
+       uint32_t i;
 
        ZERO_STRUCTP( privilege_mask );