From bfe963d46c778b579a3e12597a0ca391ee5fe391 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 5 Mar 2019 20:23:30 +0400 Subject: pica-node: fix leak of SSL structs on transition from anon to authenticated c2n and c2c --- PICA_node.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'PICA_node.c') diff --git a/PICA_node.c b/PICA_node.c index 0a67880..256f999 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -2723,6 +2723,8 @@ void process_newconn_read(fd_set *readfds) //switch state of client or cclink on successful shutdown if (ret == 1) { + SSL_free(newconns[i].anonssl); + if (newconns[i].iconn.cl && newconns[i].type == NEWCONN_C2N) { newconns[i].iconn.cl->state = PICA_CLSTATE_TLSNEGOTIATION; -- cgit v1.2.1