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:
parent
f5ed8cc829
commit
540483c01b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user