git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3028401
)
lib: Use dom_sid_str_buf
author
Volker Lendecke
<vl@samba.org>
Sat, 8 Dec 2018 14:18:38 +0000
(15:18 +0100)
committer
Jeremy Allison
<jra@samba.org>
Mon, 10 Dec 2018 23:40:30 +0000
(
00:40
+0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/afs/afs_funcs.c
patch
|
blob
|
history
diff --git
a/lib/afs/afs_funcs.c
b/lib/afs/afs_funcs.c
index 8a3c90a47e59cbe068bc6e4ff1f3b0f98e8af065..6645166546265ebf1797a373d83b47787600adaf 100644
(file)
--- 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;
}