Ensure securityFlags are always initialized.

This commit is contained in:
Armin Novak 2016-12-02 10:46:43 +01:00
parent 8a80a10bc3
commit a1b2325c1d
6 changed files with 6 additions and 6 deletions

View File

@ -3806,7 +3806,7 @@ static BOOL rdp_read_capability_sets(wStream* s, rdpSettings* settings,
BOOL rdp_recv_get_active_header(rdpRdp* rdp, wStream* s, UINT16* pChannelId)
{
UINT16 length;
UINT16 securityFlags;
UINT16 securityFlags = 0;
if (!rdp_read_header(rdp, s, &length, pChannelId))
return FALSE;

View File

@ -773,7 +773,7 @@ BOOL rdp_client_connect_auto_detect(rdpRdp* rdp, wStream* s)
{
if (channelId == rdp->mcs->messageChannelId)
{
UINT16 securityFlags;
UINT16 securityFlags = 0;
if (!rdp_read_security_header(s, &securityFlags))
return FALSE;

View File

@ -777,7 +777,7 @@ BOOL rdp_recv_client_info(rdpRdp* rdp, wStream* s)
{
UINT16 length;
UINT16 channelId;
UINT16 securityFlags;
UINT16 securityFlags = 0;
if (!rdp_read_header(rdp, s, &length, &channelId))
return FALSE;

View File

@ -243,7 +243,7 @@ int license_recv(rdpLicense* license, wStream* s)
UINT16 wMsgSize;
UINT16 length;
UINT16 channelId;
UINT16 securityFlags;
UINT16 securityFlags = 0;
if (!rdp_read_header(license->rdp, s, &length, &channelId))
{

View File

@ -360,7 +360,7 @@ static int peer_recv_tpkt_pdu(freerdp_peer* client, wStream* s)
UINT16 pduLength;
UINT16 pduSource;
UINT16 channelId;
UINT16 securityFlags;
UINT16 securityFlags = 0;
rdp = client->context->rdp;
if (!rdp_read_header(rdp, s, &length, &channelId))

View File

@ -1110,7 +1110,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
UINT16 pduLength;
UINT16 pduSource;
UINT16 channelId = 0;
UINT16 securityFlags;
UINT16 securityFlags = 0;
int nextPosition;
if (!rdp_read_header(rdp, s, &length, &channelId))