]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 10 Dec 2000 14:49:23 +0000 (14:49 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 10 Dec 2000 14:49:23 +0000 (14:49 +0000)
src/cli.c

index cb59f0736b59827a6ba56f9e11273a73f3a7be65..a4fc9372cd243fdbf3d3b1d520bb862b25095991 100644 (file)
--- 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;
                                }