The first response is alwasy ACCESS_DENIED to initiate authentication.
Only the second response must not have that status.
switch(StatusCode)
{
- case HTTP_STATUS_DENIED:
- freerdp_set_last_error(rdg->context, FREERDP_ERROR_CONNECT_ACCESS_DENIED);
- http_response_free(response);
- return FALSE;
-
case HTTP_STATUS_NOT_FOUND:
{
WLog_INFO(TAG, "RD Gateway does not support HTTP transport.");
case HTTP_STATUS_DENIED:
freerdp_set_last_error(rdg->context, FREERDP_ERROR_CONNECT_ACCESS_DENIED);
return FALSE;
- default:
- return FALSE;
- }
+ default:
+ return FALSE;
+ }
if (strcmp(method, "RDG_OUT_DATA") == 0)
{