[core,rdstls] do silent password check
In rdstls_parse_pdu_data_type do not use logging stream functions. This function might be called with incomplete data so avoid spamming the log.
This commit is contained in:
parent
9089150e28
commit
ec9b5c33bc
@ -972,8 +972,9 @@ static SSIZE_T rdstls_parse_pdu_data_type(wLog* log, UINT16 dataType, wStream* s
|
|||||||
return 0;
|
return 0;
|
||||||
Stream_Read_UINT16(s, passwordLength);
|
Stream_Read_UINT16(s, passwordLength);
|
||||||
|
|
||||||
if (!Stream_SafeSeek(s, passwordLength))
|
if (Stream_GetRemainingLength(s) < passwordLength)
|
||||||
return 0;
|
return 0;
|
||||||
|
Stream_Seek(s, passwordLength);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RDSTLS_DATA_AUTORECONNECT_COOKIE:
|
case RDSTLS_DATA_AUTORECONNECT_COOKIE:
|
||||||
|
Loading…
Reference in New Issue
Block a user