summaryrefslogtreecommitdiff
path: root/source4/libcli/security
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-12-02 05:29:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:59 -0500
commit540483c01b0b03ecd0c9b8824b124542a12fce24 (patch)
tree64acb88d57f2a0561ec08c724deec412b38bc4b5 /source4/libcli/security
parentf5ed8cc829b0522ea4bd8142abc80f5133136834 (diff)
downloadsamba-540483c01b0b03ecd0c9b8824b124542a12fce24.tar.gz
samba-540483c01b0b03ecd0c9b8824b124542a12fce24.tar.bz2
samba-540483c01b0b03ecd0c9b8824b124542a12fce24.zip
r12011: fixed another 'mixed code and declarations' bug
(This used to be commit 1eca19d597ea21a073361fc6fc550919abf97574)
Diffstat (limited to 'source4/libcli/security')
-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;