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

r12011: fixed another 'mixed code and declarations' bug

(This used to be commit 1eca19d597)
This commit is contained in:
Andrew Tridgell 2005-12-02 05:29:13 +00:00 committed by Gerald (Jerry) Carter
parent f5ed8cc829
commit 540483c01b

View File

@ -281,8 +281,9 @@ static struct security_acl *sddl_decode_acl(struct security_descriptor *sd,
/* now the ACEs */
while (*sddl == '(') {
char *astr;
len = strcspn(sddl+1, ")");
char *astr = talloc_strndup(acl, sddl+1, len);
astr = talloc_strndup(acl, sddl+1, len);
if (astr == NULL || sddl[len+1] != ')') {
talloc_free(acl);
return NULL;