git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
528170e
)
smbd: Use dom_sid_str_buf
author
Volker Lendecke
<vl@samba.org>
Fri, 26 Oct 2018 06:25:14 +0000
(08:25 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 2 Nov 2018 20:21:15 +0000
(21:21 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/nttrans.c
patch
|
blob
|
history
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index 68470766f77914620ac4dc660099d9625508eed0..3c9b0ebb3f5d5636488d894136e3533250a969d2 100644
(file)
--- 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;
}