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/security_token.c

index 2e5a87b..de75033 100644 (file)
@@ -62,8 +62,11 @@ void security_token_debug(int dbg_class, int dbg_lev, const struct security_toke
        DEBUGC(dbg_class, dbg_lev, ("Security token SIDs (%lu):\n",
                                       (unsigned long)token->num_sids));
        for (i = 0; i < token->num_sids; i++) {
-               DEBUGADDC(dbg_class, dbg_lev, ("  SID[%3lu]: %s\n", (unsigned long)i,
-                          dom_sid_string(mem_ctx, &token->sids[i])));
+               struct dom_sid_buf sidbuf;
+               DEBUGADDC(dbg_class,
+                         dbg_lev,
+                         ("  SID[%3lu]: %s\n", (unsigned long)i,
+                          dom_sid_str_buf(&token->sids[i], &sidbuf)));
        }
 
        security_token_debug_privileges(dbg_class, dbg_lev, token);