From: Nikos Mavrogiannopoulos Date: Sun, 10 Dec 2000 14:49:23 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls0-0-6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbb1d8ea7945ba382c2a37a481dd0594f477134;p=thirdparty%2Fgnutls.git *** empty log message *** --- 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; }