PT-TLS connection is properly terminated

This commit is contained in:
Andreas Steffen 2013-08-08 21:48:46 +02:00
parent 12b3db5006
commit 8327c44b74
1 changed files with 2 additions and 3 deletions

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;