From 49f7dc01f239cd5900e1e2dcee9e9a7f5373990a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 8 Dec 2018 15:18:38 +0100 Subject: [PATCH] lib: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- lib/afs/afs_funcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/afs/afs_funcs.c b/lib/afs/afs_funcs.c index 8a3c90a47e5..66451665462 100644 --- a/lib/afs/afs_funcs.c +++ b/lib/afs/afs_funcs.c @@ -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; }