mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,gateway] cleanup http response
This commit is contained in:
@@ -378,6 +378,7 @@ BOOL arm_resolve_endpoint(rdpContext* context, DWORD timeout)
|
||||
|
||||
rc = TRUE;
|
||||
arm_error:
|
||||
http_response_free(response);
|
||||
arm_free(arm);
|
||||
free(message);
|
||||
return rc;
|
||||
|
||||
@@ -339,6 +339,7 @@ BOOL http_context_enable_websocket_upgrade(HttpContext* context, BOOL enable)
|
||||
if (winpr_RAND(key, sizeof(key)) != 0)
|
||||
return FALSE;
|
||||
|
||||
free(context->SecWebsocketKey);
|
||||
context->SecWebsocketKey = crypto_base64_encode(key, sizeof(key));
|
||||
if (!context->SecWebsocketKey)
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user