libcli: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Sat, 24 Nov 2018 12:16:56 +0000 (13:16 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 27 Nov 2018 06:13:14 +0000 (07:13 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/security/secdesc.c

index 8cf44347c7c5937583212bf92f946a4d07decfcc..53e0e023a7b9186aef87f84df821ed3e5a1bf085 100644 (file)
@@ -492,6 +492,7 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
                const struct dom_sid *ptrustee = &ace->trustee;
                const struct dom_sid *creator = NULL;
                uint8_t new_flags = ace->flags;
+               struct dom_sid_buf sidbuf1, sidbuf2;
 
                if (!is_inheritable_ace(ace, container)) {
                        continue;
@@ -540,9 +541,9 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
 
                        DEBUG(5,("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x"
                                 " inherited as %s:%d/0x%02x/0x%08x\n",
-                                dom_sid_string(frame, &ace->trustee),
+                                dom_sid_str_buf(&ace->trustee, &sidbuf1),
                                 ace->type, ace->flags, ace->access_mask,
-                                dom_sid_string(frame, &new_ace->trustee),
+                                dom_sid_str_buf(&new_ace->trustee, &sidbuf2),
                                 new_ace->type, new_ace->flags,
                                 new_ace->access_mask));
 
@@ -565,9 +566,9 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
 
                DEBUG(5, ("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x "
                          " inherited as %s:%d/0x%02x/0x%08x\n",
-                         dom_sid_string(frame, &ace->trustee),
+                         dom_sid_str_buf(&ace->trustee, &sidbuf1),
                          ace->type, ace->flags, ace->access_mask,
-                         dom_sid_string(frame, &new_ace->trustee),
+                         dom_sid_str_buf(&new_ace->trustee, &sidbuf2),
                          new_ace->type, new_ace->flags,
                          new_ace->access_mask));