PT-TLS connection is properly terminated

This commit is contained in:
Andreas Steffen
2013-08-15 23:34:22 +02:00
parent 12b3db5006
commit 8327c44b74
+2 -3
View 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;