mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-07 15:56:27 +00:00
Added return value checking for correctness in programs
This commit is contained in:
@@ -273,7 +273,13 @@ static int ssl_test( struct options *opt )
|
||||
ssl_set_ciphersuites( &ssl, opt->force_ciphersuite );
|
||||
|
||||
if( opt->iomode == IOMODE_NONBLOCK )
|
||||
net_set_nonblock( client_fd );
|
||||
{
|
||||
if( ( ret = net_set_nonblock( client_fd ) ) != 0 )
|
||||
{
|
||||
printf( " ! net_set_nonblock returned %d\n\n", ret );
|
||||
return( ret );
|
||||
}
|
||||
}
|
||||
|
||||
read_buf = (unsigned char *) malloc( opt->buffer_size );
|
||||
write_buf = (unsigned char *) malloc( opt->buffer_size );
|
||||
|
||||
Reference in New Issue
Block a user