summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-14 21:39:18 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-14 21:39:18 +0200
commitfcfe96e834a10350cebad094922ad1f2f8a05ccb (patch)
tree0e73f7e2466eeaf2d987a2131f6a89d110d1f99e /src/ipcpd
parent989c4280f2ad1f2d3e77b5b7b4845869e1bdbeb1 (diff)
downloadouroboros-fcfe96e834a10350cebad094922ad1f2f8a05ccb.tar.gz
ouroboros-fcfe96e834a10350cebad094922ad1f2f8a05ccb.zip
ipcpd: shim-udp: log error when failed sending SDU
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/shim-udp/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 3296540e..4da27655 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -528,7 +528,8 @@ static void * ipcp_udp_sdu_loop(void * o)
rw_lock_unlock(&_ap_instance->data_lock);
- send(fd, buf, len, 0);
+ if (send(fd, buf, len, 0) < 0)
+ LOG_ERR("Failed to send SDU.");
rw_lock_rdlock(&_ap_instance->data_lock);