mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missing SSL shutdown when replacing existing connection
This commit is contained in:
parent
5261c3cd73
commit
10230dff6e
@ -1074,6 +1074,12 @@ int pqissl::Initiate_SSL_Connection()
|
||||
"pqissl::Initiate_SSL_Connection() SSL Connection Okay");
|
||||
#endif
|
||||
|
||||
if(ssl_connection != NULL)
|
||||
{
|
||||
SSL_shutdown(ssl_connection);
|
||||
SSL_free(ssl_connection) ;
|
||||
}
|
||||
|
||||
ssl_connection = ssl;
|
||||
|
||||
net_internal_SSL_set_fd(ssl, sockfd);
|
||||
|
Loading…
Reference in New Issue
Block a user