dh_server: Fixed expected number of bytes received from client when receiving public value.
@@ -234,6 +234,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 );
