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
parent f2a597fa3d
commit b194a283a9

View file

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