diff options
author | Bodo Möller <bodo@openssl.org> | 1999-08-01 11:19:59 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-08-01 11:19:59 +0000 |
commit | f3db3d172f706146caca57469adee7687e664d16 (patch) | |
tree | e7c0a5a5cca49fae5813001a9008132e63a071fb | |
parent | e01449264664b54194ea326e8290cf3d3843c690 (diff) |
SSL_shutdown was done too early.
-rw-r--r-- | demos/ssl/cli.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/demos/ssl/cli.cpp b/demos/ssl/cli.cpp index bab4e47d67..b3d726961f 100644 --- a/demos/ssl/cli.cpp +++ b/demos/ssl/cli.cpp @@ -97,11 +97,10 @@ void main () err = SSL_write (ssl, "Hello World!", strlen("Hello World!")); CHK_SSL(err); - SSL_shutdown (ssl); /* send SSL/TLS close_notify */ - err = SSL_read (ssl, buf, sizeof(buf) - 1); CHK_SSL(err); buf[err] = '\0'; printf ("Got %d chars:'%s'\n", err, buf); + SSL_shutdown (ssl); /* send SSL/TLS close_notify */ /* Clean up. */ |