posix_acls: clarify loop condition code, removing unneeded counter variable.
commit3c213a1f8d7da283a48574eabcd3f81b46ea7b74
authorMichael Adam <obnox@samba.org>
Thu, 27 Mar 2008 09:09:24 +0000 (27 10:09 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 27 Mar 2008 09:09:24 +0000 (27 10:09 +0100)
tree22619635a71af0d73d9615fa4f95614067c882c6
parentd8d1eea13663ceb28aefdf734592b90a108891b0
posix_acls: clarify loop condition code, removing unneeded counter variable.

Coverity ID 545 falsely classified this as a NULL dereferencing bug.
By putting the loop of walking the list of aces more naturely not using
additional counters, it becomes much more obvious that it is not entered
when dir_ace == NULL.

The same modifications are done for the file_ace loop.

Michael
(This used to be commit 6dab6cf0647d7db01e5e472f8b5cf21395b7dbf0)
source3/smbd/posix_acls.c