From 540483c01b0b03ecd0c9b8824b124542a12fce24 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Dec 2005 05:29:13 +0000 Subject: r12011: fixed another 'mixed code and declarations' bug (This used to be commit 1eca19d597ea21a073361fc6fc550919abf97574) --- source4/libcli/security/sddl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/libcli/security/sddl.c') 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; -- cgit