diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-08-08 21:48:46 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-08-15 23:34:22 +0200 |
commit | 8327c44b7424d649352c08ef0efc49f2db697f5e (patch) | |
tree | b749ae6e310aca47030215835dcb3a8df5218908 /src | |
parent | 12b3db500606bcbd6fd2986463a4b1f37586bdbb (diff) | |
download | strongswan-8327c44b7424d649352c08ef0efc49f2db697f5e.tar.bz2 strongswan-8327c44b7424d649352c08ef0efc49f2db697f5e.tar.xz |
PT-TLS connection is properly terminated
Diffstat (limited to 'src')
-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; |