1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

lib: 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-12-08 15:18:38 +01:00 committed by Jeremy Allison
parent 3028401737
commit 49f7dc01f2

View File

@ -228,6 +228,7 @@ bool afs_login(connection_struct *conn)
char *ticket_str = NULL;
const struct dom_sid *user_sid;
TALLOC_CTX *ctx = talloc_tos();
struct dom_sid_buf buf;
struct ClearToken ct;
@ -253,7 +254,7 @@ bool afs_login(connection_struct *conn)
afs_username = talloc_string_sub(talloc_tos(),
afs_username,
"%s",
sid_string_tos(user_sid));
dom_sid_str_buf(user_sid, &buf));
if (!afs_username) {
return false;
}