PT-TLS connection is properly terminated
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Aug 2013 19:48:46 +0000 (21:48 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 15 Aug 2013 21:34:22 +0000 (23:34 +0200)
src/libcharon/plugins/tnc_pdp/tnc_pdp.c

index 707b113..c835dde 100644 (file)
@@ -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;