[core,info] fix missing check in rdp_write_logon_info_v1

This commit is contained in:
akallabeth 2024-04-21 13:56:13 +02:00 committed by akallabeth
parent 48013d75fc
commit 71e463e31b

View File

@ -1398,6 +1398,10 @@ static BOOL rdp_write_logon_info_v1(wStream* s, logon_info* info)
return FALSE;
/* domain */
WINPR_ASSERT(info);
if (!info->domain || !info->username)
return FALSE;
len = strnlen(info->domain, charLen + 1);
if (len > charLen)
return FALSE;