aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index 411d24f7..2383e965 100644
--- a/socket.c
+++ b/socket.c
@@ -855,6 +855,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char
if (fingerprint != NULL || certck) {
if( NULL != SSLGetContext( sock ) ) {
/* Clean up the SSL stack */
+ SSL_shutdown( _ssl_context[sock] );
SSL_free( _ssl_context[sock] );
_ssl_context[sock] = NULL;
}
@@ -872,6 +873,7 @@ int SockClose(int sock)
#ifdef SSL_ENABLE
if( NULL != SSLGetContext( sock ) ) {
/* Clean up the SSL stack */
+ SSL_shutdown( _ssl_context[sock] );
SSL_free( _ssl_context[sock] );
_ssl_context[sock] = NULL;
}