From: Dr. Stephen Henson Date: Mon, 3 Dec 2012 03:39:23 +0000 (+0000) Subject: don't check errno is zero, just print out message X-Git-Tag: master-post-reformat~1552 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5447f836a00c5661297d284927abe09bf39ecd38;p=oweals%2Fopenssl.git don't check errno is zero, just print out message --- diff --git a/apps/s_client.c b/apps/s_client.c index 9c852e4eda..14841ca1e3 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1912,7 +1912,7 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240 break; case SSL_ERROR_SYSCALL: ret=get_last_socket_error(); - if (ret == 0 && c_brief) + if (ret == 0) BIO_puts(bio_err, "CONNECTION CLOSED BY SERVER\n"); else BIO_printf(bio_err,"read:errno=%d\n",ret);