summaryrefslogtreecommitdiffstats
path: root/PICA_nodewait.c
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-02-26 18:45:17 +0400
committerAnton <anton@picapica>2019-02-26 18:45:17 +0400
commit567fe3dd1c29882ecc88b2cc7505d2e423afd6f7 (patch)
tree4ab7e3fdf75198e7b1ccdf80aedecc9ed87e3223 /PICA_nodewait.c
parenta1768de90865758da7dbd5bf7710ff5c14db80e6 (diff)
downloadpica-pica-567fe3dd1c29882ecc88b2cc7505d2e423afd6f7.tar.gz
pica-pica-567fe3dd1c29882ecc88b2cc7505d2e423afd6f7.zip
pica-node: fix free of anonssl handle, there was memory leak in timed out newconn-s
Diffstat (limited to 'PICA_nodewait.c')
-rw-r--r--PICA_nodewait.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/PICA_nodewait.c b/PICA_nodewait.c
index c2467e1..64ee270 100644
--- a/PICA_nodewait.c
+++ b/PICA_nodewait.c
@@ -173,6 +173,7 @@ static void *nodewait_connect_thread (void *arg)
if (!SSL_set_fd(nw->nc.anonssl, nw->nc.sck) || 1 != SSL_connect(nw->nc.anonssl))
{
SSL_free(nw->nc.anonssl);
+ nw->nc.anonssl = NULL;
CLOSE(nw->nc.sck);
ap = ap->ai_next;
continue;