summaryrefslogtreecommitdiffstats
path: root/PICA_node.c
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-05 20:23:30 +0400
committerAnton <anton@picapica>2019-03-05 20:23:30 +0400
commitbfe963d46c778b579a3e12597a0ca391ee5fe391 (patch)
tree71b850fbf0fb332257e01506700e9648d5466e37 /PICA_node.c
parentd1e06b9877096c848a8660bb476377b85cabcbbd (diff)
downloadpica-pica-bfe963d46c778b579a3e12597a0ca391ee5fe391.tar.gz
pica-pica-bfe963d46c778b579a3e12597a0ca391ee5fe391.zip
pica-node: fix leak of SSL structs on transition from anon to authenticated c2n and c2c
Diffstat (limited to 'PICA_node.c')
-rw-r--r--PICA_node.c2
1 files changed, 2 insertions, 0 deletions
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;