diff options
author | Volker Lendecke <vl@samba.org> | 2018-12-21 09:30:58 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-01-08 03:40:27 +0100 |
commit | 08be989aa91682956133270a6ee41bd1ae1622d1 (patch) | |
tree | e771c9fb4e728fa2c537c93cb5554df3bc1b2346 /source3 | |
parent | 6b8c77152e901de97c182285a698a67fad7bb7b3 (diff) | |
download | samba-08be989aa91682956133270a6ee41bd1ae1622d1.tar.gz |
smbclient: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 7 |
1 files 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; } |