summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-12-03 03:40:57 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-12-03 03:40:57 +0000
commit2537d46903c72d947b4e7eddd0bc89937d1350be (patch)
tree07bba3a412018f47ea021aef75ff6ca6c4b89648 /apps
parent5447f836a00c5661297d284927abe09bf39ecd38 (diff)
oops, really check brief mode only ;-)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 14841ca1e3..7041fb49fe 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)
+ if (c_brief)
BIO_puts(bio_err, "CONNECTION CLOSED BY SERVER\n");
else
BIO_printf(bio_err,"read:errno=%d\n",ret);