mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 12:15:38 +01:00
- Fixed possible uninitialized values
This commit is contained in:
parent
0216cc1bee
commit
99a03afc22
@ -131,7 +131,7 @@ int dhm_make_params( dhm_context *ctx, int x_size,
|
||||
unsigned char *output, int *olen,
|
||||
int (*f_rng)(void *), void *p_rng )
|
||||
{
|
||||
int i, ret, n, n1, n2, n3;
|
||||
int ret, n, n1, n2, n3;
|
||||
unsigned char *p;
|
||||
|
||||
/*
|
||||
@ -206,8 +206,7 @@ int dhm_make_public( dhm_context *ctx, int x_size,
|
||||
unsigned char *output, int olen,
|
||||
int (*f_rng)(void *), void *p_rng )
|
||||
{
|
||||
int ret, i, n;
|
||||
unsigned char *p;
|
||||
int ret, n;
|
||||
|
||||
if( ctx == NULL || olen < 1 || olen > ctx->len )
|
||||
return( POLARSSL_ERR_DHM_BAD_INPUT_DATA );
|
||||
|
@ -625,7 +625,7 @@ static int ssl_write_client_key_exchange( ssl_context *ssl )
|
||||
|
||||
static int ssl_write_certificate_verify( ssl_context *ssl )
|
||||
{
|
||||
int ret, n;
|
||||
int ret = 0, n = 0;
|
||||
unsigned char hash[36];
|
||||
|
||||
SSL_DEBUG_MSG( 2, ( "=> write certificate verify" ) );
|
||||
|
@ -681,7 +681,7 @@ static int ssl_write_server_hello_done( ssl_context *ssl )
|
||||
|
||||
static int ssl_parse_client_key_exchange( ssl_context *ssl )
|
||||
{
|
||||
int ret, i, n;
|
||||
int ret, i, n = 0;
|
||||
|
||||
SSL_DEBUG_MSG( 2, ( "=> parse client key exchange" ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user