summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_sid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index bb9e2e98f9..0a026a1e05 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -34,9 +34,7 @@
char *sid_to_fstring(fstring sidstr_out, const struct dom_sid *sid)
{
- char *str = sid_string_talloc(talloc_tos(), sid);
- fstrcpy(sidstr_out, str);
- TALLOC_FREE(str);
+ dom_sid_string_buf(sid, sidstr_out, sizeof(fstring));
return sidstr_out;
}