[gateway,rpc] return FREERDP_ERROR_CONNECT_ACCESS_DENIED

unify http and rpc gateway return codes
This commit is contained in:
Armin Novak 2023-07-31 16:25:59 +02:00 committed by akallabeth
parent c656bb9d1d
commit e7c2a75e1e

View File

@ -607,7 +607,7 @@ static SSIZE_T rpc_client_default_out_channel_recv(rdpRpc* rpc)
if (statusCode == HTTP_STATUS_DENIED) if (statusCode == HTTP_STATUS_DENIED)
{ {
rdpContext* context = transport_get_context(rpc->transport); rdpContext* context = transport_get_context(rpc->transport);
freerdp_set_last_error_if_not(context, FREERDP_ERROR_AUTHENTICATION_FAILED); freerdp_set_last_error_if_not(context, FREERDP_ERROR_CONNECT_ACCESS_DENIED);
} }
http_response_free(response); http_response_free(response);