From 80b44220fb2e77aa302126abe9dec5d4185e8b61 Mon Sep 17 00:00:00 2001 From: joss17 Date: Tue, 23 Feb 2010 22:27:09 +0000 Subject: [PATCH] Properly close ssl connection when receiving error SYS_CALL. Bug solved git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2410 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqissl.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index 44a09d0c4..da15deeb1 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -202,8 +202,10 @@ int pqissl::reset() out << "pqissl::reset() Shutting down SSL Connection"; out << std::endl; if (quietShutdown) { - ssl_connection->quiet_shutdown; + ssl_connection->quiet_shutdown = 1; + SSL_shutdown(ssl_connection); } else { + ssl_connection->quiet_shutdown = 0; SSL_shutdown(ssl_connection); }