1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: 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-26 08:25:14 +02:00 committed by Jeremy Allison
parent 528170ef6b
commit ce18cd2a3b

View File

@ -2336,9 +2336,9 @@ static enum ndr_err_code fill_qtlist_from_sids(TALLOC_CTX *mem_ctx,
ok = sid_to_uid(&sids[i], &list_item->uid);
if (!ok) {
char buf[DOM_SID_STR_BUFLEN];
dom_sid_string_buf(&sids[i], buf, sizeof(buf));
DBG_WARNING("Could not convert SID %s to uid\n", buf);
struct dom_sid_buf buf;
DBG_WARNING("Could not convert SID %s to uid\n",
dom_sid_str_buf(&sids[i], &buf));
/* No idea what to return here... */
return NDR_ERR_INVALID_POINTER;
}