summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-06 09:30:01 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-04-06 09:30:01 +0000
commit34ef0da6c1b3a3419dbdf2041ed1e3ba107dc915 (patch)
treed8e793cffbe829d64855eaa5a429b90ebe3dc3a4 /src/ipcpd/ipcp.c
parentc6ad4f96f8bb2f1ee749e92308e7173523ddd0b8 (diff)
parente1c0714d5827cd927961f3a687d9720e6e9aa802 (diff)
downloadouroboros-34ef0da6c1b3a3419dbdf2041ed1e3ba107dc915.tar.gz
ouroboros-34ef0da6c1b3a3419dbdf2041ed1e3ba107dc915.zip
Merged in dstaesse/ouroboros/be-tim (pull request #464)
lib, irmd: Implement flow allocation timeout
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 4b7da030..f08e4ce7 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -296,7 +296,7 @@ static void * ipcp_main_loop(void * o)
buffer.len = ipcp_msg__get_packed_size(&ret_msg);
if (buffer.len == 0) {
- log_err("Failed to send reply message");
+ log_err("Failed to pack reply message");
close(lsockfd);
thread_inc();
continue;
@@ -304,6 +304,7 @@ static void * ipcp_main_loop(void * o)
buffer.data = malloc(buffer.len);
if (buffer.data == NULL) {
+ log_err("Failed to create reply buffer.");
close(lsockfd);
thread_inc();
continue;
@@ -312,6 +313,7 @@ static void * ipcp_main_loop(void * o)
ipcp_msg__pack(&ret_msg, buffer.data);
if (write(lsockfd, buffer.data, buffer.len) == -1) {
+ log_err("Failed to send reply message");
free(buffer.data);
close(lsockfd);
thread_inc();