PT-TLS connection is properly terminated
This commit is contained in:
parent
12b3db5006
commit
8327c44b74
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue