dh_server: Fixed expected number of bytes received from client when receiving public value.

This commit is contained in:
Martijn de Milliano 2017-07-06 23:55:59 +02:00 committed by Gilles Peskine
parent 5273182a20
commit 8f96fb2141

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 );