From 1ea08b776fbb42dbf93b26c02b839b5a3c0f1692 Mon Sep 17 00:00:00 2001 From: akarl10 Date: Sat, 26 Oct 2024 23:43:37 +0200 Subject: [PATCH] Fix Http Negotiate for Websocket When using negotiate in non direct NTLM mode the success response contains an aditional token for the authentication layer. Add HTTP_STATUS_SWITCH_PROTOCOLS to the list of valid HTTP status codes where to extract the last auth token --- libfreerdp/core/gateway/rdg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/core/gateway/rdg.c b/libfreerdp/core/gateway/rdg.c index 219adaf81..a8c0d65b4 100644 --- a/libfreerdp/core/gateway/rdg.c +++ b/libfreerdp/core/gateway/rdg.c @@ -722,6 +722,7 @@ static BOOL rdg_recv_auth_token(wLog* log, rdpCredsspAuth* auth, HttpResponse* r { case HTTP_STATUS_DENIED: case HTTP_STATUS_OK: + case HTTP_STATUS_SWITCH_PROTOCOLS: break; default: http_response_log_error_status(log, WLOG_WARN, response);