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
This commit is contained in:
joss17 2010-02-23 22:27:09 +00:00
parent 887b151779
commit 80b44220fb

View File

@ -202,8 +202,10 @@ int pqissl::reset()
out << "pqissl::reset() Shutting down SSL Connection"; out << "pqissl::reset() Shutting down SSL Connection";
out << std::endl; out << std::endl;
if (quietShutdown) { if (quietShutdown) {
ssl_connection->quiet_shutdown; ssl_connection->quiet_shutdown = 1;
SSL_shutdown(ssl_connection);
} else { } else {
ssl_connection->quiet_shutdown = 0;
SSL_shutdown(ssl_connection); SSL_shutdown(ssl_connection);
} }