diff --git a/libfreerdp/core/capabilities.c b/libfreerdp/core/capabilities.c index 6b2e0404c..640cc7b0e 100644 --- a/libfreerdp/core/capabilities.c +++ b/libfreerdp/core/capabilities.c @@ -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; diff --git a/libfreerdp/core/connection.c b/libfreerdp/core/connection.c index 4776e8b14..b8a6ec826 100644 --- a/libfreerdp/core/connection.c +++ b/libfreerdp/core/connection.c @@ -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; diff --git a/libfreerdp/core/info.c b/libfreerdp/core/info.c index 88e3c2b8c..2fdd3a262 100644 --- a/libfreerdp/core/info.c +++ b/libfreerdp/core/info.c @@ -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; diff --git a/libfreerdp/core/license.c b/libfreerdp/core/license.c index 0d467067c..ae785e70f 100644 --- a/libfreerdp/core/license.c +++ b/libfreerdp/core/license.c @@ -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)) { diff --git a/libfreerdp/core/peer.c b/libfreerdp/core/peer.c index 1b8e75e92..fc9247e95 100644 --- a/libfreerdp/core/peer.c +++ b/libfreerdp/core/peer.c @@ -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)) diff --git a/libfreerdp/core/rdp.c b/libfreerdp/core/rdp.c index 01c9370dc..ed87f1080 100644 --- a/libfreerdp/core/rdp.c +++ b/libfreerdp/core/rdp.c @@ -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))