summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-03 17:29:28 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-03 17:29:28 +0100
commit0a58878e6c499e0757a11c842cc1d0ac6ffb4ab8 (patch)
treea2a3d316c2d27eac93e64e60e934cab281d4ac4d /src/lib
parent71c93ca569034b1346dc625b6b22ecab83d5bcce (diff)
parent6746face5a53d48853cb7f1ad0acc587920183b7 (diff)
downloadouroboros-0a58878e6c499e0757a11c842cc1d0ac6ffb4ab8.tar.gz
ouroboros-0a58878e6c499e0757a11c842cc1d0ac6ffb4ab8.zip
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-common
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/irm.c8
-rw-r--r--src/lib/sockets.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 97000029..8756d7fc 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -26,6 +26,7 @@
#include <ouroboros/common.h>
#include <ouroboros/logs.h>
#include <ouroboros/sockets.h>
+#include <stdlib.h>
static int send_irm_msg(struct irm_msg * msg)
{
@@ -47,8 +48,11 @@ static int send_irm_msg(struct irm_msg * msg)
return -1;
}
- close(sockfd);
- return 0;
+ free(buf->data);
+ free(buf);
+
+ close(sockfd);
+ return 0;
}
int irm_create_ipcp(rina_name_t name,
diff --git a/src/lib/sockets.c b/src/lib/sockets.c
index c0331063..6cd70a8b 100644
--- a/src/lib/sockets.c
+++ b/src/lib/sockets.c
@@ -48,7 +48,7 @@ int client_socket_open(char * file_name)
if (connect(sockfd,
(struct sockaddr *) &serv_addr,
sizeof(serv_addr))) {
- LOG_ERR("Failed to connect to server");
+ LOG_ERR("Failed to connect to daemon");
return -1;
}