Fix uninitialized variable in ssl_server2

This commit is contained in:
Gilles Peskine 2018-04-26 14:33:43 +02:00
parent 6331d78675
commit 4d9ec4dcf7

View file

@ -1223,6 +1223,9 @@ int main( int argc, char *argv[] )
mbedtls_pk_init( &pkey );
mbedtls_x509_crt_init( &srvcert2 );
mbedtls_pk_init( &pkey2 );
#if defined(MBEDTLS_SSL_ASYNC_PRIVATE)
memset( &ssl_async_keys, 0, sizeof( ssl_async_keys ) );
#endif
#endif
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_FS_IO)
mbedtls_dhm_init( &dhm );