Added return value checking for correctness in programs
diff --git a/programs/test/ssl_test.c b/programs/test/ssl_test.c
index c090a85..04adf29 100644
--- a/programs/test/ssl_test.c
+++ b/programs/test/ssl_test.c
@@ -278,7 +278,13 @@
else 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 );