mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
added missing SSL shutdown when replacing existing connection
This commit is contained in:
parent
5261c3cd73
commit
10230dff6e
1 changed files with 6 additions and 0 deletions
|
@ -1074,6 +1074,12 @@ int pqissl::Initiate_SSL_Connection()
|
||||||
"pqissl::Initiate_SSL_Connection() SSL Connection Okay");
|
"pqissl::Initiate_SSL_Connection() SSL Connection Okay");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(ssl_connection != NULL)
|
||||||
|
{
|
||||||
|
SSL_shutdown(ssl_connection);
|
||||||
|
SSL_free(ssl_connection) ;
|
||||||
|
}
|
||||||
|
|
||||||
ssl_connection = ssl;
|
ssl_connection = ssl;
|
||||||
|
|
||||||
net_internal_SSL_set_fd(ssl, sockfd);
|
net_internal_SSL_set_fd(ssl, sockfd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue