From e7c2a75e1e12111f5a81d9782799a76e30decbc3 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 31 Jul 2023 16:25:59 +0200 Subject: [PATCH] [gateway,rpc] return FREERDP_ERROR_CONNECT_ACCESS_DENIED unify http and rpc gateway return codes --- libfreerdp/core/gateway/rpc_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/gateway/rpc_client.c b/libfreerdp/core/gateway/rpc_client.c index 881a2c52e..d499ed2e5 100644 --- a/libfreerdp/core/gateway/rpc_client.c +++ b/libfreerdp/core/gateway/rpc_client.c @@ -607,7 +607,7 @@ static SSIZE_T rpc_client_default_out_channel_recv(rdpRpc* rpc) if (statusCode == HTTP_STATUS_DENIED) { 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);