summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-10 14:49:23 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-10 14:49:23 +0000
commit8dbb1d8ea7945ba382c2a37a481dd0594f477134 (patch)
treea1d3d57f8572239953b0dceb5b3bed0478aa5f41
parent97c42205ee2e9e6f29c9d3c137b19b29c58208fc (diff)
downloadgnutls-8dbb1d8ea7945ba382c2a37a481dd0594f477134.tar.gz
*** empty log message ***
-rw-r--r--src/cli.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cli.c b/src/cli.c
index cb59f0736b..a4fc9372cd 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -138,18 +138,13 @@ int main()
ret = gnutls_recv(sd, state, buffer, MAX_BUF);
/* remove new line */
if (buffer[strlen(buffer)-1]=='\n') buffer[strlen(buffer)-1]='\0';
- if (ret==0) {
- fprintf(stderr,
- "Peer has abnormaly closed the GNUTLS connection\n");
- break;
- }
if (gnutls_is_fatal_error(ret) == 1) {
if (ret == GNUTLS_E_CLOSURE_ALERT_RECEIVED || ret == GNUTLS_E_INVALID_SESSION) {
fprintf(stderr,
"Peer has closed the GNUTLS connection\n");
break;
} else {
- fprintf(stderr, "Received corrupted data(%d)\n",
+ fprintf(stderr, "Received corrupted data(%d) - server has terminated the connection abnormally\n",
ret);
break;
}