[core,info] fix missing check in rdp_write_logon_info_v1
This commit is contained in:
parent
48013d75fc
commit
71e463e31b
@ -1398,6 +1398,10 @@ static BOOL rdp_write_logon_info_v1(wStream* s, logon_info* info)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* domain */
|
/* domain */
|
||||||
|
WINPR_ASSERT(info);
|
||||||
|
if (!info->domain || !info->username)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
len = strnlen(info->domain, charLen + 1);
|
len = strnlen(info->domain, charLen + 1);
|
||||||
if (len > charLen)
|
if (len > charLen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user