summaryrefslogtreecommitdiff
path: root/auth/auth_log.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-10-18 06:08:19 +0200
committerJeremy Allison <jra@samba.org>2018-11-02 21:21:14 +0100
commit4c1d10760d9d0cc788eb8994b99ce238ba25bbd0 (patch)
treecc0eb42e54cb89a084b312bfae4c816701355df5 /auth/auth_log.c
parent4602605323e76f853320e360632d644b310dd93b (diff)
downloadsamba-4c1d10760d9d0cc788eb8994b99ce238ba25bbd0.tar.gz
auth: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'auth/auth_log.c')
-rw-r--r--auth/auth_log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth/auth_log.c b/auth/auth_log.c
index 9e57b1d3968..96c396357c4 100644
--- a/auth/auth_log.c
+++ b/auth/auth_log.c
@@ -578,14 +578,13 @@ static void log_authentication_event_human_readable(
local = tsocket_address_string(ui->local_host, frame);
if (NT_STATUS_IS_OK(status)) {
- char sid_buf[DOM_SID_STR_BUFLEN];
+ struct dom_sid_buf sid_buf;
- dom_sid_string_buf(sid, sid_buf, sizeof(sid_buf));
logon_line = talloc_asprintf(frame,
" became [%s]\\[%s] [%s].",
log_escape(frame, domain_name),
log_escape(frame, account_name),
- sid_buf);
+ dom_sid_str_buf(sid, &sid_buf));
} else {
logon_line = talloc_asprintf(
frame,