mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
UNICODE cleanup (see lib/util_unistr.c).
No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size).
This commit is contained in:
@ -707,9 +707,9 @@ void make_rpc_auth_ntlmssp_resp(RPC_AUTH_NTLMSSP_RESP *rsp,
|
||||
|
||||
if (IS_BITS_SET_ALL(neg_flags, NTLMSSP_NEGOTIATE_UNICODE))
|
||||
{
|
||||
str_to_unistr8(rsp->domain, domain);
|
||||
str_to_unistr8(rsp->user , user );
|
||||
str_to_unistr8(rsp->wks , wks );
|
||||
ascii_to_unibuf(rsp->domain, domain, sizeof(rsp->domain));
|
||||
ascii_to_unibuf(rsp->user , user , sizeof(rsp->user ));
|
||||
ascii_to_unibuf(rsp->wks , wks , sizeof(rsp->wks ));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user