aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-10-21 09:15:09 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-10-21 09:15:09 +0000
commitcb3a803b9d4cb0f5104610d8f69311c94a432b96 (patch)
tree7da5b0bdd8a93948d5250b0cb18e99e68b7dad52 /socket.c
parentb2b654b64407239dcca1020743e67f5e840e96f5 (diff)
downloadfetchmail-cb3a803b9d4cb0f5104610d8f69311c94a432b96.tar.gz
fetchmail-cb3a803b9d4cb0f5104610d8f69311c94a432b96.tar.bz2
fetchmail-cb3a803b9d4cb0f5104610d8f69311c94a432b96.zip
Properly shut down SSL connections. Berlios Patch #647 by Arkadiusz Miśkiewicz.
svn path=/trunk/; revision=4360
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;
}