[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:
akallabeth 2024-11-05 17:49:48 +01:00
parent 9089150e28
commit ec9b5c33bc
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -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: