diff options
Diffstat (limited to 'demos/ssl/cli.cpp')
-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. */ |