mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[core,gateway] fix missing return checks
This commit is contained in:
@@ -2233,7 +2233,8 @@ rdpRdg* rdg_new(rdpContext* context)
|
||||
if (rdg->context->settings->GatewayAccessToken)
|
||||
rdg->extAuth = HTTP_EXTENDED_AUTH_PAA;
|
||||
|
||||
UuidCreate(&rdg->guid);
|
||||
if (UuidCreate(&rdg->guid) != RPC_S_OK)
|
||||
goto rdg_alloc_error;
|
||||
|
||||
rdg->tlsOut = freerdp_tls_new(rdg->context);
|
||||
|
||||
|
||||
@@ -1037,6 +1037,9 @@ static BOOL tsg_packet_quarenc_response_to_string(char** buffer, size_t* length,
|
||||
if (!tsg_print(buffer, length, " "))
|
||||
return FALSE;
|
||||
|
||||
if (UuidToStringA(&caps->nonce, &uuid) != RPC_S_OK)
|
||||
return FALSE;
|
||||
|
||||
if (caps->certChainLen > 0)
|
||||
{
|
||||
if (caps->certChainLen > INT_MAX)
|
||||
@@ -1047,7 +1050,6 @@ static BOOL tsg_packet_quarenc_response_to_string(char** buffer, size_t* length,
|
||||
}
|
||||
|
||||
tsg_packet_versioncaps_to_string(&ptbuffer, &size, &caps->versionCaps);
|
||||
UuidToStringA(&caps->nonce, &uuid);
|
||||
if (strdata || (caps->certChainLen == 0))
|
||||
rc =
|
||||
tsg_print(buffer, length,
|
||||
|
||||
Reference in New Issue
Block a user