mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3: Use dom_sid_string_buf in sid_to_fstring
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
This commit is contained in:
committed by
Volker Lendecke
parent
70517477f8
commit
7b139a49dc
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user