From daa3e7c7f826a6c6d9485c0525c3c8ad06203236 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Thu, 27 Nov 2014 15:08:07 +0100 Subject: [PATCH] tsg: fix possible free of initialized memory --- libfreerdp/core/gateway/rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/core/gateway/rpc.c b/libfreerdp/core/gateway/rpc.c index eba1e3bdd..4d4c67503 100644 --- a/libfreerdp/core/gateway/rpc.c +++ b/libfreerdp/core/gateway/rpc.c @@ -379,6 +379,7 @@ int rpc_write(rdpRpc* rpc, BYTE* data, int length, UINT16 opnum) WLog_ERR(TAG, "QueryContextAttributes SECPKG_ATTR_SIZES failure"); return -1; } + ZeroMemory(&Buffers, sizeof(Buffers)); request_pdu = (rpcconn_request_hdr_t*) calloc(1, sizeof(rpcconn_request_hdr_t));