diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-03 04:40:57 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-03 04:40:57 +0100 |
commit | 2537d46903c72d947b4e7eddd0bc89937d1350be (patch) | |
tree | 07bba3a412018f47ea021aef75ff6ca6c4b89648 /apps | |
parent | don't check errno is zero, just print out message (diff) | |
download | openssl-2537d46903c72d947b4e7eddd0bc89937d1350be.tar.xz openssl-2537d46903c72d947b4e7eddd0bc89937d1350be.zip |
oops, really check brief mode only ;-)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 2 |
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); |