diff options
Diffstat (limited to 'src/libcharon/plugins/tnc_pdp/tnc_pdp.c')
-rw-r--r-- | src/libcharon/plugins/tnc_pdp/tnc_pdp.c | 5 |
1 files 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; |