Merge pull request #10337 from akallabeth/tsg-quarenc-fix

[core,gateway] fix reading TSG strings
This commit is contained in:
akallabeth 2024-07-03 16:21:33 +02:00 committed by GitHub
commit d055e89c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -629,7 +629,9 @@ static BOOL tsg_ndr_read_quarenc_data(wLog* log, wStream* s, UINT32* index,
if (quarenc->certChainLen > 0) if (quarenc->certChainLen > 0)
{ {
if (!tsg_ndr_read_string(log, s, &quarenc->certChainData, quarenc->certChainLen)) /* [MS-TSGU] 2.2.9.2.1.6 TSG_PACKET_QUARENC_RESPONSE::certChainLen number of WCHAR */
if (!tsg_ndr_read_string(log, s, &quarenc->certChainData,
quarenc->certChainLen * sizeof(WCHAR)))
return FALSE; return FALSE;
/* 4-byte alignment */ /* 4-byte alignment */
if (!tsg_stream_align(log, s, 4)) if (!tsg_stream_align(log, s, 4))