From 2537d46903c72d947b4e7eddd0bc89937d1350be Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 3 Dec 2012 03:40:57 +0000 Subject: [PATCH] oops, really check brief mode only ;-) --- apps/s_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1