mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
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:
parent
887b151779
commit
80b44220fb
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user