mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed broken strnlen checks
This commit is contained in:
@@ -347,7 +347,7 @@ static BOOL wts_write_drdynvc_create_request(wStream* s, UINT32 ChannelId, const
|
||||
{
|
||||
size_t len;
|
||||
wts_write_drdynvc_header(s, CREATE_REQUEST_PDU, ChannelId);
|
||||
len = strnlen(ChannelName, CHANNEL_NAME_LEN) + 1;
|
||||
len = strlen(ChannelName) + 1;
|
||||
|
||||
if (!Stream_EnsureRemainingCapacity(s, len))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user