diff options
-rw-r--r-- | blabouncer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/blabouncer.c b/blabouncer.c index 78ddd9f..520341d 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -282,8 +282,10 @@ int disconnectclient(int fd, struct client *clients, struct ircdstrings *ircdstr clients[i].pendingwhois = 0; clients[i].pendingwhowas = 0; clients[i].pendingnames = 0; - // Finish up with OpenSSL - SSL_free(clients[i].ssl); + if (settings->clienttls) { + // Finish up with OpenSSL if using client TLS + SSL_free(clients[i].ssl); + } // Close the socket close(fd); // Now clients array is cleared, inform all other clients (source "0" since we trust this message) |