]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
posix_acls: Do a *bit* of reformatting
authorVolker Lendecke <vl@samba.org>
Thu, 9 Feb 2017 17:45:40 +0000 (18:45 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 1 Mar 2017 19:33:17 +0000 (20:33 +0100)
Makes the next commit a bit more obvious to me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c

index 8187a8b712dc5f1c1983c19b31f9725967bee248..ae667ef9dc080663e15906242f9759c4c13e2d7d 100644 (file)
@@ -3359,8 +3359,11 @@ static NTSTATUS posix_get_nt_acl_common(struct connection_struct *conn,
                        num_acls = count_canon_ace_list(file_ace);
                        num_def_acls = count_canon_ace_list(dir_ace);
 
-                       /* Allocate the ace list. */
-                       if ((nt_ace_list = talloc_array(talloc_tos(), struct security_ace,num_acls + num_profile_acls + num_def_acls)) == NULL) {
+                       nt_ace_list = talloc_array(
+                               talloc_tos(), struct security_ace,
+                               num_acls + num_profile_acls + num_def_acls);
+
+                       if (nt_ace_list == NULL) {
                                DEBUG(0,("get_nt_acl: Unable to malloc space for nt_ace_list.\n"));
                                goto done;
                        }