From: Volker Lendecke Date: Fri, 26 Oct 2018 06:25:14 +0000 (+0200) Subject: smbd: Use dom_sid_str_buf X-Git-Tag: tdb-1.3.17~954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce18cd2a3be78ef9d3abe87539e27c6d81dbb944;p=thirdparty%2Fsamba.git smbd: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 68470766f77..3c9b0ebb3f5 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -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; }