mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
fixed missing SSL_free when a new connection replaces the existing one
This commit is contained in:
parent
aabfcb975c
commit
cefa5d9f9e
@ -1433,6 +1433,7 @@ int pqissl::accept_locked(SSL *ssl, int fd, const struct sockaddr_storage &forei
|
|||||||
rslog(RSL_ALERT, pqisslzone,
|
rslog(RSL_ALERT, pqisslzone,
|
||||||
"pqissl::accept() closing Previous/Existing ssl_connection");
|
"pqissl::accept() closing Previous/Existing ssl_connection");
|
||||||
SSL_shutdown(ssl_connection);
|
SSL_shutdown(ssl_connection);
|
||||||
|
SSL_free (ssl_connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sockfd > -1) && (sockfd != fd))
|
if ((sockfd > -1) && (sockfd != fd))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user