Ensure securityFlags are always initialized.
This commit is contained in:
parent
8a80a10bc3
commit
a1b2325c1d
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user