diff options
author | Matt Caswell <matt@openssl.org> | 2023-06-07 17:26:58 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-14 05:08:37 +0200 |
commit | edd5b9d708d03ce1bdc1cbfc026ccc9183d586ad (patch) | |
tree | 1db109a0d7ae3c54990e30c7d9b046492b0270f7 /demos/guide | |
parent | Split the blocking TLS client guide page into two (diff) | |
download | openssl-edd5b9d708d03ce1bdc1cbfc026ccc9183d586ad.tar.xz openssl-edd5b9d708d03ce1bdc1cbfc026ccc9183d586ad.zip |
Fix minor issues in the demo/man pages for TLS client/blocking
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21133)
Diffstat (limited to 'demos/guide')
-rw-r--r-- | demos/guide/tls-client-block.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/guide/tls-client-block.c b/demos/guide/tls-client-block.c index 56133aab64..ef8248c734 100644 --- a/demos/guide/tls-client-block.c +++ b/demos/guide/tls-client-block.c @@ -37,10 +37,8 @@ static BIO *create_socket_bio(const char *hostname, const char *port) * Lookup IP address info for the server. */ if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, 0, SOCK_STREAM, 0, - &res)) { - BIO_closesocket(sock); + &res)) return NULL; - } /* * Loop through all the possible addresses for the server and find one |