diff options
author | Matt Caswell <matt@openssl.org> | 2023-06-07 16:26:58 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-14 13:08:37 +1000 |
commit | edd5b9d708d03ce1bdc1cbfc026ccc9183d586ad (patch) | |
tree | 1db109a0d7ae3c54990e30c7d9b046492b0270f7 /demos | |
parent | 2df71d618505056f86cf4e033d9fdfcde0e6574a (diff) | |
download | openssl-edd5b9d708d03ce1bdc1cbfc026ccc9183d586ad.tar.gz |
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')
-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 |