From 7dcba9a663854b74930ad20bc3828bd6c79126c4 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 3 Mar 2016 09:08:30 +0100 Subject: [PATCH] Removed additional '\0' from TUNNEL_AUTH message. --- libfreerdp/core/gateway/rdg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libfreerdp/core/gateway/rdg.c b/libfreerdp/core/gateway/rdg.c index 3f3bab8ec..474ed85ad 100644 --- a/libfreerdp/core/gateway/rdg.c +++ b/libfreerdp/core/gateway/rdg.c @@ -206,7 +206,7 @@ BOOL rdg_send_tunnel_authorization(rdpRdg* rdg) if (!clientName) return FALSE; - packetSize = 12 + clientNameLen * 2 + sizeof(WCHAR); + packetSize = 12 + clientNameLen * sizeof(WCHAR); s = Stream_New(NULL, packetSize); if (!s) @@ -225,8 +225,6 @@ BOOL rdg_send_tunnel_authorization(rdpRdg* rdg) for (i = 0; i < clientNameLen; i++) Stream_Write_UINT16(s, clientName[i]); - Stream_Write_UINT16(s, 0); - Stream_SealLength(s); status = rdg_write_packet(rdg, s);