summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/security/sddl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/security/sddl.c b/source4/libcli/security/sddl.c
index 1a15d8853a..fa0e15a7b6 100644
--- a/source4/libcli/security/sddl.c
+++ b/source4/libcli/security/sddl.c
@@ -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;