From: Volker Lendecke Date: Sat, 24 Nov 2018 12:16:56 +0000 (+0100) Subject: libcli: Use dom_sid_str_buf X-Git-Tag: tdb-1.3.17~611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b289d15b85cd7d2e92b4d63d53eb6ea4d97d72b9;p=thirdparty%2Fsamba.git libcli: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c index 8cf44347c7c..53e0e023a7b 100644 --- a/libcli/security/secdesc.c +++ b/libcli/security/secdesc.c @@ -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));