libcli/security/sddl.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 "acl->num_aces" is
defined of this type.

libcli/security/sddl.c

index 5b605c0531f8064dd42b428dfdc880758e79384c..c1f2e9637393af4f0df349f2fe9a830fc73f92b0 100644 (file)
@@ -566,7 +566,7 @@ static char *sddl_encode_acl(TALLOC_CTX *mem_ctx, const struct security_acl *acl
                             uint32_t flags, const struct dom_sid *domain_sid)
 {
        char *sddl;
-       int i;
+       uint32_t i;
 
        /* add any ACL flags */
        sddl = sddl_flags_to_string(mem_ctx, acl_flags, flags, false);