1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14249: We've dereferenced the_acl before, no point in checking.

Fix Coverity bug # 128.

Volker
This commit is contained in:
Volker Lendecke 2006-03-12 18:01:36 +00:00 committed by Gerald (Jerry) Carter
parent 811ae2b21f
commit 84e9e73f3c

View 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;