mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-22 02:16:38 +00:00
nc_recved() connection closure change
This commit is contained in:
parent
7107297c25
commit
1e2c434ae8
@ -733,8 +733,8 @@ err_t NetconEthernetTap::nc_recved(void *arg, struct tcp_pcb *PCB, struct pbuf *
|
||||
if(p == NULL) {
|
||||
if(l->conn && !l->conn->listening) {
|
||||
dwr(MSG_INFO," nc_recved(): closing connection\n");
|
||||
//if(l->tap->lwipstack->_tcp_close(l->conn->pcb) != ERR_OK)
|
||||
// dwr(MSG_ERROR," nc_recved(): error while calling tcp_close()\n");
|
||||
if(l->tap->lwipstack->_tcp_close(l->conn->pcb) != ERR_OK)
|
||||
dwr(MSG_ERROR," nc_recved(): error while calling tcp_close()\n");
|
||||
l->tap->closeConnection(l->conn->sock);
|
||||
return ERR_ABRT;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user