Skip to content

Commit

Permalink
nbt_server: Use dom_sid_str_buf
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed Nov 2, 2018
1 parent 3fa4590 commit 07d0520
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source4/nbt_server/dgram/netlogon.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ static NTSTATUS nbtd_netlogon_samlogon(
netlogon->req.logon.nt_version, nbtsrv->task->lp_ctx,
&response->data.samlogon, false);
if (!NT_STATUS_IS_OK(status)) {
char buf[DOM_SID_STR_BUFLEN];
dom_sid_string_buf(sid, buf, sizeof(buf));
struct dom_sid_buf buf;

DBG_NOTICE("NBT netlogon query failed domain=%s sid=%s "
"version=%d - %s\n", dst_name->name, buf,
netlogon->req.logon.nt_version, nt_errstr(status));
"version=%d - %s\n",
dst_name->name,
dom_sid_str_buf(sid, &buf),
netlogon->req.logon.nt_version,
nt_errstr(status));
TALLOC_FREE(reply_mailslot);
TALLOC_FREE(response);
return status;
Expand Down

0 comments on commit 07d0520

Please sign in to comment.