summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 10:03:49 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 10:03:49 +0200
commita81e1dfb377ef3e53c2a158ea438f27773ceb25d (patch)
treefd83242e72c0a8c2d33e0eec4aef344ff6b2f2c7 /src/ipcpd/shim-udp
parentae4e931baf24e95e594bbdf29597856552e95791 (diff)
downloadouroboros-a81e1dfb377ef3e53c2a158ea438f27773ceb25d.tar.gz
ouroboros-a81e1dfb377ef3e53c2a158ea438f27773ceb25d.zip
lib: removed fd cleaning function
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r--src/ipcpd/shim-udp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 601698e2..1e58a8fc 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -595,9 +595,10 @@ static int ipcp_udp_port_alloc_reply(int src_udp_port,
static int ipcp_udp_flow_dealloc_req(int udp_port)
{
- int fd = -1;
+ int fd = -1;
+ int port_id = -1;
+
struct shm_ap_rbuff * rb;
- int port_id = -1;
rw_lock_rdlock(&_ipcp->state_lock);
rw_lock_wrlock(&_ap_instance->flows_lock);
@@ -1477,7 +1478,7 @@ static int ipcp_udp_flow_dealloc(int port_id)
rw_lock_unlock(&_ipcp->state_lock);
LOG_DBGF("Flow with port_id %d has no peer.", port_id);
close(fd);
- return 0 ;
+ return 0;
}
remote_udp = r_saddr.sin_port;