From 8327c44b7424d649352c08ef0efc49f2db697f5e Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 8 Aug 2013 21:48:46 +0200 Subject: [PATCH] PT-TLS connection is properly terminated --- src/libcharon/plugins/tnc_pdp/tnc_pdp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libcharon/plugins/tnc_pdp/tnc_pdp.c b/src/libcharon/plugins/tnc_pdp/tnc_pdp.c index 707b113e4..c835dde78 100644 --- a/src/libcharon/plugins/tnc_pdp/tnc_pdp.c +++ b/src/libcharon/plugins/tnc_pdp/tnc_pdp.c @@ -593,10 +593,9 @@ static bool pt_tls_receive_more(pt_tls_server_t *this, int fd, case SUCCESS: default: DBG1(DBG_TNC, "PT-TLS connection terminates"); - lib->watcher->remove(lib->watcher, fd); - close(fd); this->destroy(this); - break; + close(fd); + return FALSE; } return TRUE;