Merge remote-tracking branch 'public/pr/1298' into mbedtls-2.1-proposed

This commit is contained in:
Simon Butcher 2018-10-28 18:17:00 +00:00
commit 4acdf6dea8
2 changed files with 3 additions and 0 deletions

View file

@ -506,6 +506,8 @@ Bugfix
Vranken.
* Fix a numerical underflow leading to stack overflow in mpi_read_file()
that was triggered uppon reading an empty line. Found by Guido Vranken.
* Fix programs/pkey/dh_server.c so that it actually works with dh_client.c.
Found and fixed by Martijn de Milliano.
Changes
* Clarify ECDSA documentation and improve the sample code to avoid

View file

@ -229,6 +229,7 @@ int main( void )
memset( buf, 0, sizeof( buf ) );
n = dhm.len;
if( ( ret = mbedtls_net_recv( &client_fd, buf, n ) ) != (int) n )
{
mbedtls_printf( " failed\n ! mbedtls_net_recv returned %d\n\n", ret );