Fixing uninitialized valirables
This commit is contained in:
parent
b217d3e060
commit
f57b0a76a5
@ -892,13 +892,13 @@ xrdp_mcs_out_gcc_data(struct xrdp_sec *self)
|
||||
int gcc_size;
|
||||
char *gcc_size_ptr;
|
||||
char *ud_ptr;
|
||||
int header_length;
|
||||
int server_cert_len;
|
||||
int public_key_blob_len;
|
||||
int key_len;
|
||||
int bit_len;
|
||||
int data_len;
|
||||
int modulus_len;
|
||||
int header_length = 0;
|
||||
int server_cert_len = 0;
|
||||
int public_key_blob_len = 0;
|
||||
int key_len = 0;
|
||||
int bit_len = 0;
|
||||
int data_len = 0;
|
||||
int modulus_len = 0;
|
||||
|
||||
num_channels = self->mcs_layer->channel_list->count;
|
||||
num_channels_even = num_channels + (num_channels & 1);
|
||||
@ -1025,7 +1025,7 @@ xrdp_mcs_out_gcc_data(struct xrdp_sec *self)
|
||||
data_len = 63; /* datalen (63 = (bitlen / 8) - 1) */
|
||||
modulus_len = 64;
|
||||
}
|
||||
else if (self->rsa_key_bytes == 256)
|
||||
else /* if (self->rsa_key_bytes == 256) */
|
||||
{
|
||||
header_length = 0x01ac; /* length = 428 */
|
||||
server_cert_len = 0x178; /* serverCertLen (376 bytes) */
|
||||
|
Loading…
Reference in New Issue
Block a user