libcli/security/security_descriptor.c - fix three wrong counter variables
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 16 Feb 2011 08:22:43 +0000 (09:22 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 21 Feb 2011 09:46:40 +0000 (10:46 +0100)
These strictly need to be "uint32_t" since "acl*->num_aces" has been
defined by this type.

This counter patchset has been reviewed by Andrew Bartlett.

libcli/security/security_descriptor.c

index 60f9de8f8796eb69c5007fce90f1f9913734c500..574dd4e317b1aa322ed294463c157bd26708f08d 100644 (file)
@@ -85,7 +85,7 @@ struct security_acl *security_acl_concatenate(TALLOC_CTX *mem_ctx,
                                               const struct security_acl *acl2)
 {
         struct security_acl *nacl;
-        int i;
+        uint32_t i;
 
         if (!acl1 && !acl2)
                 return NULL;
@@ -270,7 +270,7 @@ static NTSTATUS security_descriptor_acl_del(struct security_descriptor *sd,
                                            bool sacl_del,
                                            const struct dom_sid *trustee)
 {
-       int i;
+       uint32_t i;
        bool found = false;
        struct security_acl *acl = NULL;
 
@@ -364,7 +364,7 @@ bool security_ace_equal(const struct security_ace *ace1,
 bool security_acl_equal(const struct security_acl *acl1, 
                        const struct security_acl *acl2)
 {
-       int i;
+       uint32_t i;
 
        if (acl1 == acl2) return true;
        if (!acl1 || !acl2) return false;