summaryrefslogtreecommitdiff
path: root/netcon
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2016-01-15 13:02:48 -0800
committerJoseph Henry <josephjah@gmail.com>2016-01-15 13:02:48 -0800
commit1e2c434ae873076886a3d911849aecbacad81f05 (patch)
tree48a94f6b0413df9052fca81120797ef68fb23969 /netcon
parent7107297c252cb116ea42aae8eb7b9f15957568e6 (diff)
downloadinfinitytier-1e2c434ae873076886a3d911849aecbacad81f05.tar.gz
infinitytier-1e2c434ae873076886a3d911849aecbacad81f05.zip
nc_recved() connection closure change
Diffstat (limited to 'netcon')
-rw-r--r--netcon/NetconEthernetTap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index 7c479881..bcd678db 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -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;
}