From 08be989aa91682956133270a6ee41bd1ae1622d1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 21 Dec 2018 09:30:58 +0100 Subject: [PATCH] smbclient: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/client/client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index e8faed55dc4..3a31463cdbb 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -3359,9 +3359,10 @@ static int cmd_posix_whoami(void) } d_printf("NUM_SIDS:%" PRIu32 "\n", num_sids); for (i = 0; i < num_sids; i++) { - char *sid_str = dom_sid_string(ctx, &sids[i]); - d_printf("SIDS[%" PRIu32 "]:%s\n", i, sid_str); - TALLOC_FREE(sid_str); + struct dom_sid_buf buf; + d_printf("SIDS[%" PRIu32 "]:%s\n", + i, + dom_sid_str_buf(&sids[i], &buf)); } return 0; }