Merge pull request #10822 from akallabeth/rdstls-silence

[core,rdstls] do silent password check
This commit is contained in:
akallabeth
2024-11-06 11:06:36 +01:00
committed by GitHub

View File

@@ -972,8 +972,9 @@ static SSIZE_T rdstls_parse_pdu_data_type(wLog* log, UINT16 dataType, wStream* s
return 0;
Stream_Read_UINT16(s, passwordLength);
if (!Stream_SafeSeek(s, passwordLength))
if (Stream_GetRemainingLength(s) < passwordLength)
return 0;
Stream_Seek(s, passwordLength);
}
break;
case RDSTLS_DATA_AUTORECONNECT_COOKIE: