mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 03:11:02 +00:00
dh_server: Fixed expected number of bytes received from client when receiving public value.
This commit is contained in:
parent
f2a597fa3d
commit
b194a283a9
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue