Merge pull request #10643 from llyzs/rdg

[core,gateway] read leftover http body in the rdg IN channel.
This commit is contained in:
akallabeth 2024-09-19 13:21:26 +02:00 committed by GitHub
commit 33fcc04263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1505,6 +1505,16 @@ static BOOL rdg_establish_data_connection(rdpRdg* rdg, rdpTls* tls, const char*
if (!rdg_send_http_request(rdg, tls, method, TransferEncodingChunked))
return FALSE;
response = http_response_recv(tls, TRUE);
if (!response)
{
WLog_Print(rdg->log, WLOG_INFO, "RD Gateway HTTP transport broken.");
*rpcFallback = TRUE;
return FALSE;
}
http_response_free(response);
if (rdg->extAuth == HTTP_EXTENDED_AUTH_SSPI_NTLM)
{
/* create a new auth context for SSPI_NTLM. This must be done after the last