[core,gateway] fix missing return checks

This commit is contained in:
Armin Novak
2026-03-03 12:30:26 +01:00
parent 17163d3738
commit ce3f205cd6
2 changed files with 5 additions and 2 deletions

View File

@@ -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);

View File

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