From 087fba94bb47e4bf8571f266e04f1c88007e8cb6 Mon Sep 17 00:00:00 2001 From: Yosuke Shimizu Date: Tue, 24 Mar 2026 10:29:20 +0900 Subject: [PATCH] Fix f_404 --- apps/wolfsshd/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wolfsshd/auth.c b/apps/wolfsshd/auth.c index 2fe00049..8fba01e9 100644 --- a/apps/wolfsshd/auth.c +++ b/apps/wolfsshd/auth.c @@ -946,7 +946,7 @@ static int SetupUserTokenWin(const char* usr, /* write domain name after the user name in buffer */ l->DomainName.Length = (USHORT)(wcslen(dmW) * sizeof(wchar_t)); - l->DomainName.MaximumLength = l->UserPrincipalName.Length; + l->DomainName.MaximumLength = l->DomainName.Length; l->DomainName.Buffer = (WCHAR*)((byte*)(l->UserPrincipalName.Buffer) + l->UserPrincipalName.Length); memcpy_s(l->DomainName.Buffer, l->DomainName.Length, dmW, l->DomainName.Length); }