diff options
author | Joe Orton <joe@manyfish.uk> | 2020-06-18 22:27:47 +0100 |
---|---|---|
committer | Joe Orton <joe@manyfish.uk> | 2020-06-18 22:27:47 +0100 |
commit | cefffa9de4255a00b6642d346207738bfad3c222 (patch) | |
tree | b61661164636378d756b025526d6cea7ed85beab | |
parent | 58c665fb80ea2e414403aadb188dd2eccf09fb00 (diff) | |
download | neon-git-cefffa9de4255a00b6642d346207738bfad3c222.tar.gz |
Revert "* src/ne_socket.c (ne_sock_close): Complete a bidirectional shutdown"
This reverts commit b19bb812412a7a661f186abfeca3264b218a5b12.
Closes #11
-rw-r--r-- | src/ne_socket.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ne_socket.c b/src/ne_socket.c index bf8e292..52a0701 100644 --- a/src/ne_socket.c +++ b/src/ne_socket.c @@ -1975,13 +1975,12 @@ int ne_sock_close(ne_socket *sock) { int ret; - /* Complete a bidirectional shutdown for SSL/TLS. */ + /* Per API description - for an SSL connection, simply send the + * close_notify but do not wait for the peer's response. */ #if defined(HAVE_OPENSSL) if (sock->ssl) { - if (SSL_shutdown(sock->ssl) == 0) { - SSL_shutdown(sock->ssl); - } - SSL_free(sock->ssl); + SSL_shutdown(sock->ssl); + SSL_free(sock->ssl); } #elif defined(HAVE_GNUTLS) if (sock->ssl) { |