diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-10 14:49:23 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-10 14:49:23 +0000 |
commit | 8dbb1d8ea7945ba382c2a37a481dd0594f477134 (patch) | |
tree | a1d3d57f8572239953b0dceb5b3bed0478aa5f41 | |
parent | 97c42205ee2e9e6f29c9d3c137b19b29c58208fc (diff) | |
download | gnutls-8dbb1d8ea7945ba382c2a37a481dd0594f477134.tar.gz |
*** empty log message ***
-rw-r--r-- | src/cli.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |