added missing SSL shutdown when replacing existing connection

This commit is contained in:
csoler 2016-04-22 16:50:43 -04:00
parent 5261c3cd73
commit 10230dff6e

View File

@ -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);