libcli/security: Ensure to fill in remaining_access for the initial case (bug #9554...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jan 2013 09:39:23 +0000 (20:39 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 Jan 2013 18:15:45 +0000 (19:15 +0100)
It is critically important that we initialise this element as otherwise
all access is permitted.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/security/object_tree.c

index 6809c8e3452d85312eaf5ede98b24b641abd2cd6..dcbd310baeaad7e7c12a89445fe12a1c125bc9a8 100644 (file)
@@ -53,6 +53,7 @@ bool insert_in_object_tree(TALLOC_CTX *mem_ctx,
                        return false;
                }
                (*root)->guid = *guid;
+               (*root)->remaining_access = init_access;
                *new_node = *root;
                return true;
        }