r14249: We've dereferenced the_acl before, no point in checking.
authorVolker Lendecke <vlendec@samba.org>
Sun, 12 Mar 2006 18:01:36 +0000 (18:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:20 +0000 (11:15 -0500)
Fix Coverity bug # 128.

Volker

source/lib/secdesc.c

index a443f90dbb4aaeebaa823f9d43e8ba9b1349f40d..11f963fa0e86da4b9ea0ad64af2810de8570ecce 100644 (file)
@@ -433,7 +433,7 @@ SEC_DESC_BUF *se_create_child_secdesc(TALLOC_CTX *ctx, SEC_DESC *parent_ctr,
        if (!(new_ace_list = TALLOC_ARRAY(ctx, SEC_ACE, the_acl->num_aces))) 
                return NULL;
 
-       for (i = 0; the_acl && i < the_acl->num_aces; i++) {
+       for (i = 0; i < the_acl->num_aces; i++) {
                SEC_ACE *ace = &the_acl->ace[i];
                SEC_ACE *new_ace = &new_ace_list[new_ace_list_ndx];
                uint8 new_flags = 0;