1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

net: Use dom_sid_str_buf

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2018-10-18 06:18:22 +02:00 committed by Jeremy Allison
parent 71549537b7
commit dbc9a1a772

View File

@ -463,9 +463,10 @@ static int net_cache_samlogon_show(struct net_context *c,
}
for (i = 0; i < num_user_sids; i++) {
char buf[DOM_SID_STR_BUFLEN];
dom_sid_string_buf(&user_sids[i], buf, sizeof(buf));
d_printf("SID %2" PRIu32 ": %s\n", i, buf);
struct dom_sid_buf buf;
d_printf("SID %2" PRIu32 ": %s\n",
i,
dom_sid_str_buf(&user_sids[i], &buf));
}
TALLOC_FREE(user_sids);